/* Dracarys Finance - Custom Styles */

:root {
    --color-primary: #FF6B35;
    --color-secondary: #004687;
    --color-success: #1B5E20;
    --color-warning: #FFB84D;
    --color-danger: #D84315;
    --color-bg-dark: #1a1a1a;
    --color-bg-card: #2d2d2d;
    --color-text-primary: #ffffff;
    --color-text-secondary: #b0b0b0;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.6;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.8);
}

/* Inputs y selects */
input, select, textarea {
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Buttons */
button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: inherit;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Transiciones suaves */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slideIn 0.3s ease;
}

/* Tarjetas */
.card {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.1);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-primary {
    background-color: rgba(255, 107, 53, 0.2);
    color: #FF6B35;
}

.badge-success {
    background-color: rgba(27, 94, 32, 0.2);
    color: #1B5E20;
}

.badge-danger {
    background-color: rgba(216, 67, 21, 0.2);
    color: #D84315;
}

.badge-warning {
    background-color: rgba(255, 184, 77, 0.2);
    color: #FFB84D;
}

/* Responsive Grid */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .card {
        padding: 1rem;
    }

    input, select, textarea, button {
        min-height: 44px;
        font-size: 16px; /* Previene zoom en iOS */
    }
}

/* Print styles */
@media print {
    body {
        background-color: white;
        color: black;
    }

    .no-print {
        display: none;
    }
}
