/* Custom CSS for NutriApp - Professional Design */

:root {
    --primary-green: #1E8449;
    --primary-green-dark: #16A085;
    --text-dark: #2C3E50;
    --bg-light: #F8F9FA;
    --border-color: #E9ECEF;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-light);
    min-height: 100vh;
    color: var(--text-dark);
}

/* Navbar - Professional */
.navbar {
    background: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    color: var(--primary-green) !important;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand::before {
    content: "🥗";
    font-size: 1.75rem;
}

.nav-link {
    color: #6c757d !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: var(--bg-light);
    color: var(--primary-green) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    display: inline-block;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stats-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
}

.stats-icon.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stats-icon.bg-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stats-icon.bg-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stats-icon.bg-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.stats-label {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0;
}

.stats-link {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.stats-link:hover {
    color: var(--primary-green-dark);
    transform: translateX(3px);
}

/* Quick Actions Card */
.quick-actions-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    border-color: var(--primary-green);
    background: rgba(30, 132, 73, 0.05);
    color: var(--primary-green);
    transform: translateY(-2px);
}

/* Welcome Header */
.welcome-header h2 {
    font-weight: 600;
    color: var(--text-dark);
}

/* Cards - Professional */
.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    background: white;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 1.5rem;
}

/* Buttons - Professional */
.btn-primary {
    background: var(--primary-green);
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--primary-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 132, 73, 0.3);
}

.btn-lg {
    padding: 0.875rem 2.5rem;
    font-size: 1.125rem;
}

.btn-outline-primary {
    border-color: var(--primary-green);
    color: var(--primary-green);
    border-width: 2px;
}

.btn-outline-primary:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    border-width: 2px;
}

.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
    border-width: 2px;
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
}

/* Avatar Circle */
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

/* Tables - Professional */
.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
}

.table thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: background 0.2s ease;
    border-bottom: 1px solid #f1f3f5;
}

.table tbody tr:hover {
    background: var(--bg-light);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Forms */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(30, 132, 73, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(30, 132, 73, 0.85), rgba(22, 160, 133, 0.85)), url('../imagen_fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 3rem;
    max-width: 450px;
    width: 100%;
}

.login-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

/* Headings */
h2,
h3,
h4,
h5 {
    color: var(--text-dark);
    font-weight: 600;
}

.display-3 {
    font-weight: 800;
}

/* Utilities */
.text-muted {
    color: #6c757d !important;
}

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* Spacing */
.g-4 {
    gap: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .stats-card {
        margin-bottom: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.stats-card,
.feature-card {
    animation: fadeIn 0.5s ease-out;
}

/* Syncfusion Inputs */
.form-control-sf .e-input-group,
.form-control-sf.e-input-group {
    border-radius: 8px !important;
    padding: 0.375rem 0.5rem !important;
    /* Adjusted slightly as Sf adds its own padding */
}

.form-control-sf.e-input-group.e-input-focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 132, 73, 0.15);
    border-color: var(--primary-green) !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* Password Toggle Icon Styles */
.password-toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    z-index: 10;
}

.password-toggle-icon:hover {
    color: var(--primary-green);
}

.password-input .e-input-group {
    padding-right: 40px !important;
}