/* Google Material Design CSS para Intranet Directorio */

/* Google Fonts */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: #202124;
}

/* Google Sans para headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-weight: 500;
    color: #1f1f1f;
}

/* Material Design Colors */
:root {
    /* Google Grey Palette */
    --grey-50: #fafafa;
    --grey-100: #f5f5f5;
    --grey-200: #eeeeee;
    --grey-300: #e0e0e0;
    --grey-400: #bdbdbd;
    --grey-500: #9e9e9e;
    --grey-600: #757575;
    --grey-700: #616161;
    --grey-800: #424242;
    --grey-900: #212121;
    
    /* Google Blue Palette */
    --blue-50: #e3f2fd;
    --blue-100: #bbdefb;
    --blue-200: #90caf9;
    --blue-300: #64b5f6;
    --blue-400: #42a5f5;
    --blue-500: #2196f3;
    --blue-600: #1e88e5;
    --blue-700: #1976d2;
    --blue-800: #1565c0;
    --blue-900: #0d47a1;
    
    /* Google Green Palette */
    --green-50: #e8f5e8;
    --green-100: #c8e6c9;
    --green-200: #a5d6a7;
    --green-300: #81c784;
    --green-400: #66bb6a;
    --green-500: #4caf50;
    --green-600: #43a047;
    --green-700: #388e3c;
    --green-800: #2e7d32;
    --green-900: #1b5e20;
    
    /* Google Red Palette */
    --red-50: #ffebee;
    --red-100: #ffcdd2;
    --red-200: #ef9a9a;
    --red-300: #e57373;
    --red-400: #ef5350;
    --red-500: #f44336;
    --red-600: #e53935;
    --red-700: #d32f2f;
    --red-800: #c62828;
    --red-900: #b71c1c;
    
    /* Google Orange Palette */
    --orange-50: #fff3e0;
    --orange-100: #ffe0b2;
    --orange-200: #ffcc80;
    --orange-300: #ffb74d;
    --orange-400: #ffa726;
    --orange-500: #ff9800;
    --orange-600: #fb8c00;
    --orange-700: #f57c00;
    --orange-800: #ef6c00;
    --orange-900: #e65100;
    
    /* Shadows */
    --shadow-1: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --shadow-2: 0 1px 2px 0 rgba(60,64,67,0.3), 0 2px 6px 2px rgba(60,64,67,0.15);
    --shadow-3: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    --shadow-4: 0 2px 3px 0 rgba(60,64,67,0.3), 0 6px 10px 4px rgba(60,64,67,0.15);
    --shadow-5: 0 4px 4px 0 rgba(60,64,67,0.3), 0 8px 12px 6px rgba(60,64,67,0.15);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Bootstrap Overrides */
.bg-grey-50 { background-color: var(--grey-50) !important; }
.bg-grey-100 { background-color: var(--grey-100) !important; }
.bg-grey-200 { background-color: var(--grey-200) !important; }
.bg-grey-300 { background-color: var(--grey-300) !important; }
.bg-grey-400 { background-color: var(--grey-400) !important; }
.bg-grey-500 { background-color: var(--grey-500) !important; }
.bg-grey-600 { background-color: var(--grey-600) !important; }
.bg-grey-700 { background-color: var(--grey-700) !important; }
.bg-grey-800 { background-color: var(--grey-800) !important; }
.bg-grey-900 { background-color: var(--grey-900) !important; }

.text-grey-50 { color: var(--grey-50) !important; }
.text-grey-100 { color: var(--grey-100) !important; }
.text-grey-200 { color: var(--grey-200) !important; }
.text-grey-300 { color: var(--grey-300) !important; }
.text-grey-400 { color: var(--grey-400) !important; }
.text-grey-500 { color: var(--grey-500) !important; }
.text-grey-600 { color: var(--grey-600) !important; }
.text-grey-700 { color: var(--grey-700) !important; }
.text-grey-800 { color: var(--grey-800) !important; }
.text-grey-900 { color: var(--grey-900) !important; }

/* Navbar Google Style */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--grey-200) !important;
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    font-family: 'Google Sans', sans-serif !important;
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--grey-900) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--grey-700) !important;
    border-radius: var(--radius-lg);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 4px;
}

.navbar-nav .nav-link:hover {
    background-color: var(--grey-100) !important;
    color: var(--grey-900) !important;
}

.navbar-nav .nav-link.active {
    background-color: var(--blue-50) !important;
    color: var(--blue-700) !important;
}

/* Cards Google Style */
.card {
    border: none !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-1) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
}

.card:hover {
    box-shadow: var(--shadow-2) !important;
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--grey-50) !important;
    border-bottom: 1px solid var(--grey-200) !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    font-weight: 500;
    font-family: 'Google Sans', sans-serif;
}

.card-header.bg-primary {
    background-color: var(--blue-600) !important;
    border-bottom-color: rgba(255, 255, 255, 0.15) !important;
}

/* Buttons Google Style */
.btn {
    font-weight: 500;
    border-radius: var(--radius-lg);
    border: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.25px;
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active:before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-color: var(--blue-600) !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--blue-700) !important;
    box-shadow: var(--shadow-2);
}

.btn-outline-primary {
    border: 2px solid var(--blue-600) !important;
    color: var(--blue-600) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover {
    background-color: var(--blue-50) !important;
    border-color: var(--blue-700) !important;
    color: var(--blue-700) !important;
}

.btn-success {
    background-color: var(--green-600) !important;
    color: white !important;
}

.btn-success:hover {
    background-color: var(--green-700) !important;
    box-shadow: var(--shadow-2);
}

.btn-danger {
    background-color: var(--red-600) !important;
    color: white !important;
}

.btn-danger:hover {
    background-color: var(--red-700) !important;
    box-shadow: var(--shadow-2);
}

.btn-warning {
    background-color: var(--orange-600) !important;
    color: white !important;
}

.btn-warning:hover {
    background-color: var(--orange-700) !important;
    box-shadow: var(--shadow-2);
}

/* Badges Google Style */
.badge {
    font-weight: 500;
    border-radius: var(--radius-md);
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.25px;
}

/* Tables Google Style */
.table {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-1);
}

.table thead th {
    background-color: var(--grey-50) !important;
    border-bottom: 2px solid var(--grey-200) !important;
    font-weight: 500;
    font-family: 'Google Sans', sans-serif;
    color: var(--grey-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: var(--grey-50) !important;
}

.table td {
    border-bottom: 1px solid var(--grey-100) !important;
    vertical-align: middle;
}

/* Alerts Google Style */
.alert {
    border: none !important;
    border-radius: var(--radius-lg) !important;
    border-left: 4px solid !important;
    box-shadow: var(--shadow-1) !important;
}

.alert-success {
    background-color: var(--green-50) !important;
    border-left-color: var(--green-500) !important;
    color: var(--green-800) !important;
}

.alert-danger {
    background-color: var(--red-50) !important;
    border-left-color: var(--red-500) !important;
    color: var(--red-800) !important;
}

.alert-warning {
    background-color: var(--orange-50) !important;
    border-left-color: var(--orange-500) !important;
    color: var(--orange-800) !important;
}

.alert-info {
    background-color: var(--blue-50) !important;
    border-left-color: var(--blue-500) !important;
    color: var(--blue-800) !important;
}

/* Pagination Google Style */
.pagination .page-link {
    border: none !important;
    color: var(--blue-600) !important;
    border-radius: var(--radius-md) !important;
    margin: 0 2px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: var(--blue-50) !important;
    color: var(--blue-700) !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--blue-600) !important;
    color: white !important;
    box-shadow: var(--shadow-2);
}

/* Dropdown Google Style */
.dropdown-menu {
    border: none !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-4) !important;
    padding: 8px !important;
    background-color: white !important;
    z-index: 9999;
    position: absolute;
    color: var(--grey-900) !important;
}

.dropdown-item {
    border-radius: var(--radius-md) !important;
    padding: 8px 16px !important;
    font-weight: 400;
    color: var(--grey-700) !important;
    transition: all 0.2s ease;
    background-color: transparent !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--grey-100) !important;
    color: var(--grey-900) !important;
}

/* Breadcrumb Google Style */
.breadcrumb {
    background-color: transparent !important;
    padding: 0 !important;
    margin-bottom: 1rem !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">" !important;
    color: var(--grey-500) !important;
    font-weight: 400;
}

.breadcrumb-item a {
    color: var(--blue-600) !important;
    text-decoration: none;
    font-weight: 400;
}

.breadcrumb-item a:hover {
    color: var(--blue-700) !important;
    text-decoration: underline;
}

/* Material Icons */
.material-icons {
    vertical-align: middle;
    font-size: 20px;
}

/* Form Controls Google Style */
.form-control {
    border: 2px solid var(--grey-300) !important;
    border-radius: var(--radius-lg) !important;
    padding: 12px 16px !important;
    font-weight: 400;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--blue-500) !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1) !important;
    outline: none !important;
}

.form-select {
    border: 2px solid var(--grey-300) !important;
    border-radius: var(--radius-lg) !important;
    padding: 12px 16px !important;
    font-weight: 400;
    transition: all 0.2s ease;
}

.form-select:focus {
    border-color: var(--blue-500) !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1) !important;
    outline: none !important;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in {
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .card {
        margin-bottom: 16px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    
    .material-icons {
        font-size: 18px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--grey-100);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--grey-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--grey-500);
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.navbar-nav .nav-link:focus {
    outline: 2px solid var(--blue-500);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid var(--grey-300) !important;
    }
}
