/**
 * Dashboard/Welcome Page Reskin
 *
 * Modern, friendly styling for the VET7well welcome page.
 * Uses CSS overrides on top of Bootstrap 3 - no functional changes.
 *
 * @link https://vet7well.com
 * @since 1.0
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    /* Primary Colors - VET7well Green */
    --dash-primary: #7AA239;
    --dash-primary-light: #8fb94a;
    --dash-primary-dark: #5c7a2b;

    /* Secondary Colors */
    --dash-secondary: #3498db;
    --dash-secondary-light: #5faee3;
    --dash-secondary-dark: #2980b9;

    /* Neutral Colors */
    --dash-bg: #f8fafc;
    --dash-bg-card: #ffffff;
    --dash-text: #334155;
    --dash-text-muted: #64748b;
    --dash-text-light: #94a3b8;
    --dash-border: #e2e8f0;
    --dash-border-light: #f1f5f9;

    /* Status Colors */
    --dash-success: #10b981;
    --dash-info: #0ea5e9;
    --dash-warning: #f59e0b;
    --dash-danger: #ef4444;

    /* Shadows */
    --dash-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --dash-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --dash-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

    /* Spacing */
    --dash-radius: 12px;
    --dash-radius-sm: 8px;
    --dash-radius-lg: 16px;
}

/* ==========================================================================
   Dashboard Container
   ========================================================================== */

.dashboard-welcome {
    padding: 20px 0;
}

/* ==========================================================================
   Welcome Hero Section
   ========================================================================== */

.welcome-hero {
    background: linear-gradient(135deg, var(--dash-bg-card) 0%, var(--dash-border-light) 100%);
    border-radius: var(--dash-radius-lg);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--dash-shadow);
    border: 1px solid var(--dash-border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.welcome-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--dash-primary) 0%, var(--dash-primary-light) 50%, #B5B5B5 100%);
}

.welcome-hero.guest-view {
    background: linear-gradient(135deg, rgba(122, 162, 57, 0.08) 0%, rgba(52, 152, 219, 0.05) 100%);
}

.welcome-tagline {
    color: var(--dash-primary);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    text-transform: none;
}

.welcome-title {
    color: var(--dash-text);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.welcome-company {
    color: var(--dash-text-muted);
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 5px;
}

.welcome-user {
    color: var(--dash-primary);
    font-size: 18px;
    font-weight: 500;
}

/* ==========================================================================
   Quick Action Cards
   ========================================================================== */

.quick-actions {
    margin-bottom: 30px;
}

.quick-actions .row {
    margin: 0 -10px;
}

.quick-actions [class*="col-"] {
    padding: 0 10px;
    margin-bottom: 20px;
}

.action-card {
    background: var(--dash-bg-card);
    border-radius: var(--dash-radius);
    padding: 25px 20px;
    box-shadow: var(--dash-shadow-sm);
    border: 1px solid var(--dash-border);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dash-shadow-lg);
    border-color: var(--dash-primary);
}

.action-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
}

.action-card-icon.primary {
    background: linear-gradient(135deg, rgba(122, 162, 57, 0.15) 0%, rgba(122, 162, 57, 0.08) 100%);
    color: var(--dash-primary);
}

.action-card-icon.info {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(14, 165, 233, 0.08) 100%);
    color: var(--dash-info);
}

.action-card-icon.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
    color: var(--dash-warning);
}

.action-card-title {
    color: var(--dash-text);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.action-card-desc {
    color: var(--dash-text-muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ==========================================================================
   Modern Button Styles
   ========================================================================== */

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--dash-radius-sm);
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    min-width: 200px;
}

.btn-modern:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-modern:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(122, 162, 57, 0.3);
}

/* Primary Button - Green */
.btn-modern-primary {
    background: linear-gradient(135deg, var(--dash-primary) 0%, var(--dash-primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(122, 162, 57, 0.35);
}

.btn-modern-primary:hover {
    background: linear-gradient(135deg, var(--dash-primary-light) 0%, var(--dash-primary) 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px 0 rgba(122, 162, 57, 0.45);
}

/* Secondary Button - Blue */
.btn-modern-secondary {
    background: linear-gradient(135deg, var(--dash-secondary) 0%, var(--dash-secondary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(52, 152, 219, 0.35);
}

.btn-modern-secondary:hover {
    background: linear-gradient(135deg, var(--dash-secondary-light) 0%, var(--dash-secondary) 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px 0 rgba(52, 152, 219, 0.45);
}

/* Info Button - Light Blue */
.btn-modern-info {
    background: linear-gradient(135deg, var(--dash-info) 0%, #0284c7 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.35);
}

.btn-modern-info:hover {
    background: linear-gradient(135deg, #38bdf8 0%, var(--dash-info) 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px 0 rgba(14, 165, 233, 0.45);
}

/* Warning Button - Orange */
.btn-modern-warning {
    background: linear-gradient(135deg, var(--dash-warning) 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.35);
}

.btn-modern-warning:hover {
    background: linear-gradient(135deg, #fbbf24 0%, var(--dash-warning) 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px 0 rgba(245, 158, 11, 0.45);
}

/* Outline Button */
.btn-modern-outline {
    background: transparent;
    color: var(--dash-text);
    border: 2px solid var(--dash-border);
    box-shadow: none;
}

.btn-modern-outline:hover {
    background: var(--dash-bg);
    color: var(--dash-primary);
    border-color: var(--dash-primary);
}

/* Smaller Button Variant */
.btn-modern-sm {
    padding: 10px 20px;
    font-size: 14px;
    min-width: 160px;
}

/* ==========================================================================
   Button Grid
   ========================================================================== */

.button-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.button-grid .btn-modern {
    flex: 0 0 auto;
}

/* ==========================================================================
   Section Cards
   ========================================================================== */

.section-card {
    background: var(--dash-bg-card);
    border-radius: var(--dash-radius);
    padding: 25px;
    box-shadow: var(--dash-shadow-sm);
    border: 1px solid var(--dash-border);
    margin-bottom: 25px;
}

.section-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--dash-border-light);
}

.section-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--dash-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: linear-gradient(135deg, rgba(122, 162, 57, 0.15) 0%, rgba(122, 162, 57, 0.08) 100%);
    color: var(--dash-primary);
}

.section-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dash-text);
    margin: 0;
}

.section-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================================================
   Admin Tools Section
   ========================================================================== */

.admin-section {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

.admin-section .section-card-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
    color: var(--dash-warning);
}

.admin-section .section-card-header {
    border-bottom-color: rgba(245, 158, 11, 0.15);
}

/* ==========================================================================
   Support Section
   ========================================================================== */

.support-section {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(14, 165, 233, 0.02) 100%);
    border-color: rgba(14, 165, 233, 0.2);
}

.support-section .section-card-icon {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(14, 165, 233, 0.08) 100%);
    color: var(--dash-info);
}

.support-section .section-card-header {
    border-bottom-color: rgba(14, 165, 233, 0.15);
}

/* ==========================================================================
   Login Card (Guest View)
   ========================================================================== */

.login-card {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.login-card .btn-modern {
    width: 100%;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 991px) {
    .welcome-hero {
        padding: 30px 20px;
    }

    .welcome-title {
        font-size: 26px;
    }

    .button-grid {
        flex-direction: column;
        align-items: center;
    }

    .btn-modern {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 767px) {
    .welcome-hero {
        padding: 25px 15px;
    }

    .welcome-title {
        font-size: 22px;
    }

    .welcome-company {
        font-size: 18px;
    }

    .section-card {
        padding: 20px 15px;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-welcome .welcome-hero {
    animation: fadeInUp 0.5s ease-out;
}

.dashboard-welcome .section-card {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.dashboard-welcome .section-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-welcome .section-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-welcome .section-card:nth-child(3) { animation-delay: 0.3s; }

/* ==========================================================================
   Login Page Styling
   ========================================================================== */

.login-page-modern {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--dash-bg) 0%, #e2e8f0 100%);
}

.login-container {
    width: 100%;
    max-width: 420px;
}

/* Logo Section */
.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-width: 200px;
    height: auto;
    background: #ffffff;
    padding: 20px 30px;
    border-radius: var(--dash-radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.login-logo-text {
    margin-top: 15px;
    color: var(--dash-primary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Login Card */
.login-card {
    background: var(--dash-bg-card);
    border-radius: var(--dash-radius-lg);
    box-shadow: var(--dash-shadow-lg);
    border: 1px solid var(--dash-border);
    overflow: hidden;
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--dash-primary) 0%, var(--dash-primary-light) 50%, #B5B5B5 100%);
}

.login-card-header {
    padding: 30px 30px 0;
    text-align: center;
}

.login-card-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--dash-text);
    margin: 0 0 8px 0;
}

.login-card-subtitle {
    font-size: 14px;
    color: var(--dash-text-muted);
    margin: 0;
}

.login-card-body {
    padding: 30px;
}

/* Form Styling */
.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .control-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--dash-text);
    margin-bottom: 8px;
}

.login-form .control-label a {
    color: var(--dash-primary);
    font-weight: 400;
    font-size: 12px;
}

.login-form .control-label a:hover {
    color: var(--dash-primary-dark);
    text-decoration: underline;
}

.login-form .form-control {
    height: 48px;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
    background: var(--dash-bg);
    color: var(--dash-text);
    transition: all 0.2s ease;
}

.login-form .form-control:focus {
    border-color: var(--dash-primary);
    background: var(--dash-bg-card);
    box-shadow: 0 0 0 3px rgba(122, 162, 57, 0.15);
    outline: none;
}

.login-form .form-control::placeholder {
    color: var(--dash-text-light);
}

/* Checkbox Styling */
.login-form .checkbox {
    margin: 20px 0;
}

.login-form .checkbox label {
    font-size: 14px;
    color: var(--dash-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-form .checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--dash-primary);
    cursor: pointer;
}

/* Submit Button */
.login-form .btn-login {
    width: 100%;
    height: 50px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--dash-radius-sm);
    background: linear-gradient(135deg, var(--dash-primary) 0%, var(--dash-primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(122, 162, 57, 0.35);
    transition: all 0.2s ease;
    cursor: pointer;
}

.login-form .btn-login:hover {
    background: linear-gradient(135deg, var(--dash-primary-light) 0%, var(--dash-primary) 100%);
    box-shadow: 0 6px 20px 0 rgba(122, 162, 57, 0.45);
    transform: translateY(-2px);
}

.login-form .btn-login:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(122, 162, 57, 0.3), 0 4px 14px 0 rgba(122, 162, 57, 0.35);
}

.login-form .btn-login:active {
    transform: translateY(0);
}

/* Home Link */
.login-home-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--dash-border-light);
}

.login-home-link .btn-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dash-text-muted);
    background: transparent;
    border: 2px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.login-home-link .btn-home:hover {
    color: var(--dash-primary);
    border-color: var(--dash-primary);
    background: rgba(122, 162, 57, 0.05);
    text-decoration: none;
}

/* Footer Links */
.login-footer {
    text-align: center;
    margin-top: 25px;
}

.login-footer a {
    color: var(--dash-text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-footer a:hover {
    color: var(--dash-primary);
}

/* Alert Styling for Login */
.login-page-modern .alert {
    border-radius: var(--dash-radius-sm);
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

.login-page-modern .alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}

.login-page-modern .alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.login-page-modern .alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
}

.login-page-modern .alert-info {
    background: rgba(14, 165, 233, 0.1);
    color: #0369a1;
}

/* Error Messages */
.login-form .help-block {
    font-size: 12px;
    color: var(--dash-danger);
    margin-top: 6px;
}

.login-form .has-error .form-control {
    border-color: var(--dash-danger);
}

.login-form .has-error .form-control:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Social Login (Connect Widget) */
.login-social {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--dash-border-light);
}

.login-social-title {
    text-align: center;
    font-size: 13px;
    color: var(--dash-text-light);
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 480px) {
    .login-page-modern {
        padding: 20px 15px;
    }

    .login-card-header {
        padding: 25px 20px 0;
    }

    .login-card-body {
        padding: 25px 20px;
    }

    .login-card-title {
        font-size: 20px;
    }

    .login-form .form-control {
        height: 44px;
        font-size: 14px;
    }

    .login-form .btn-login {
        height: 46px;
        font-size: 15px;
    }
}

/* Animation */
.login-page-modern .login-container {
    animation: fadeInUp 0.5s ease-out;
}
