/* ===================================
   ECKHO - Corporate Secretarial Solutions
   Consolidated CSS Stylesheet
   =================================== */

/* ===================================
   RESET AND BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #1A202C;
    background-color: #FFFFFF;
    min-height: 100vh;
}

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

p {
    margin-bottom: 1rem;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #1F4E79;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #475569;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #1F4E79;
}

.nav-link.active {
    color: #1F4E79;
}

.search-icon {
    color: #94A3B8;
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-icon:hover {
    color: #475569;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    background: linear-gradient(135deg, #1F4E79 0%, #0A2540 100%);
    color: #FFFFFF;
    padding: 8rem 2rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 78, 121, 0.3);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h5 {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin-bottom: 0;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #4A90E2;
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #357ABD;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #4A90E2;
    border: 2px solid #4A90E2;
}

.btn-secondary:hover {
    background: #4A90E2;
    color: #FFFFFF;
}

.btn-link {
  font-weight: 400;
  padding: 0.25rem;
  color: #4A90E2;
  /* text-decoration: underline; */
}
.btn-link:hover {
  color: #357ABD;
}
.btn-link:disabled, .btn-link.disabled {
  color: #6c757d;
}

/* ===================================
   SECTIONS
   =================================== */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    color: #1A202C;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    color: #475569;
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   CARDS
   =================================== */
.card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin: 1rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-image {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 15px;
}

.card-title {
    color: #1A202C;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.card-description {
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.card-link {
    color: #4A90E2;
    font-weight: 500;
    text-decoration: none;
}

.card-link:hover {
    color: #357ABD;
    text-decoration: underline;
}

/* ===================================
   GRID LAYOUTS
   =================================== */
.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ===================================
   ICONS
   =================================== */
.icon {
    color: #4A90E2;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* ===================================
   SERVICES
   =================================== */
.services {
    background-color: #F8FAFC;
}

.service-item {
    text-align: center;
    padding: 2rem;
}

.service-item i {
    color: #4A90E2;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-item p {
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ===================================
   CONTACT FORM
   =================================== */
.contact-form {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    color: #1A202C;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
    background: #FFFFFF;
}

.form-control:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-control::placeholder {
    color: #94A3B8;
}

/* ===================================
   LOGIN SPECIFIC STYLES
   =================================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #1F4E79 0%, #0A2540 100%);
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 78, 121, 0.3);
    z-index: 1;
}

.login-card {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Left Panel - Brand Section */
.brand-panel {
    background: linear-gradient(135deg, #1F4E79 0%, #0A2540 100%);
    color: #FFFFFF;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.brand-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.brand-content {
    position: relative;
    z-index: 2;
}

.brand-logo {
    width: 185px;
    margin-bottom: 2rem;
}

.brand-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.brand-description {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.back-btn {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    background: #FFFFFF;
    color: #1F4E79;
    transform: translateY(-1px);
}

/* Right Panel - Login Form */
.login-panel {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 120px;
    margin-bottom: 1rem;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A202C;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #475569;
    font-size: 0.875rem;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    accent-color: #4A90E2;
}

.form-check-label {
    color: #475569;
    font-size: 0.875rem;
    cursor: pointer;
}

/* Links */
.forgot-link {
    color: #4A90E2;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #357ABD;
    text-decoration: underline;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: #223046; /* deep blue, not black */
    color: #FFFFFF;
    padding: 3rem 2rem 2rem;
    border-top: 1px solid #2D3748;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    align-items: flex-start;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

.footer-description {
    color: #A0AEC0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.footer-section h5 {
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a,
.footer-section ul li span {
    color: #A0AEC0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.footer-section ul li a:hover {
    color: #4A90E2;
}

.footer-section ul li i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.footer-bottom {
    background: #223046;
    color: #718096;
    font-size: 0.75rem;
    padding: 1rem 2rem;
    text-align: center;
    border-top: 1px solid #2D3748;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 2rem 1rem;
    }

    .login-card {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .brand-panel {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .login-panel {
        padding: 2rem 1.5rem;
    }

    .brand-logo {
        width: 150px;
    }

    .login-logo {
        width: 100px;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-logo,
    .footer-section {
        align-items: flex-start;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

/* ===================================
   LOADING STATES
   =================================== */
.fakeLoader {
    display: none;
}

/* ===================================
   FORM VALIDATION
   =================================== */
.form-control.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control.error:focus {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.error-message {
    color: #E53E3E;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Laravel @error validation styles */
.text-danger {
    color: #DC2626 !important;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: block;
    line-height: 1.4;
    position: relative;
    padding-left: 1.25rem;
}

.text-danger::before {
    content: '\f06a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.125rem;
    font-size: 0.75rem;
    color: #EF4444;
}

/* Form group with error state */
.form-group.has-error .form-control {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

.form-group.has-error .form-control:focus {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    background-color: #FFFFFF;
}

.form-group.has-error .form-label {
    color: #DC2626;
}

/* Error state animation */
.form-control.error {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* Success state for form validation */
.form-control.success {
    border-color: #22C55E;
    background-color: #F0FDF4;
}

.form-control.success:focus {
    border-color: #22C55E;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.text-success {
    color: #166534 !important;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: block;
    line-height: 1.4;
    position: relative;
    padding-left: 1.25rem;
}

.text-success::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.125rem;
    font-size: 0.75rem;
    color: #22C55E;
}

/* ===================================
   ACCESSIBILITY
   =================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===================================
   MESSAGE STATUS STYLES
   =================================== */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideInDown 0.3s ease-out;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 6px 0 0 6px;
}

.alert-success {
    background-color: #F0FDF4;
    border-color: #BBF7D0;
    color: #166534;
}

.alert-success::before {
    background-color: #22C55E;
}

.alert-success .alert-icon {
    color: #22C55E;
    font-size: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.alert-danger {
    background-color: #FEF2F2;
    border-color: #FECACA;
    color: #DC2626;
}

.alert-danger::before {
    background-color: #EF4444;
}

.alert-danger .alert-icon {
    color: #EF4444;
    font-size: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.alert-warning {
    background-color: #FFFBEB;
    border-color: #FED7AA;
    color: #D97706;
}

.alert-warning::before {
    background-color: #F59E0B;
}

.alert-warning .alert-icon {
    color: #F59E0B;
    font-size: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.alert-info {
    background-color: #EFF6FF;
    border-color: #BFDBFE;
    color: #2563EB;
}

.alert-info::before {
    background-color: #3B82F6;
}

.alert-info .alert-icon {
    color: #3B82F6;
    font-size: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
    word-wrap: break-word;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.alert-close:hover {
    opacity: 1;
}

.alert-close:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Alert with close button */
.alert-dismissible {
    padding-right: 3rem;
}

.alert-dismissible .alert-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    margin-left: 0;
}

/* Alert animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.alert.fade-out {
    animation: slideOutUp 0.3s ease-in forwards;
}

/* Alert positioning */
.alert-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1050;
    max-width: 400px;
    width: 100%;
}

.alert-container .alert {
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Alert in forms */
.form-alerts {
    margin-bottom: 1.5rem;
}

.form-alerts .alert {
    margin-bottom: 1rem;
}

.form-alerts .alert:last-child {
    margin-bottom: 0;
}

/* Alert in login forms */
.login-panel .alert {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

/* Alert icons (using Font Awesome classes) */
.alert .fa-check-circle::before {
    content: '\f058';
}

.alert .fa-exclamation-circle::before {
    content: '\f06a';
}

.alert .fa-exclamation-triangle::before {
    content: '\f071';
}

.alert .fa-info-circle::before {
    content: '\f05a';
}

.alert .fa-times::before {
    content: '\f00d';
}

/* Responsive alerts */
@media (max-width: 768px) {
    .alert-container {
        top: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
    }
    
    .alert {
        padding: 0.875rem 1rem;
        font-size: 0.8125rem;
    }
    
    .alert-close {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .alert {
        padding: 0.75rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .alert-icon {
        font-size: 1rem !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .alert-success {
        background-color: #064E3B;
        border-color: #065F46;
        color: #6EE7B7;
    }
    
    .alert-danger {
        background-color: #7F1D1D;
        border-color: #991B1B;
        color: #FCA5A5;
    }
    
    .alert-warning {
        background-color: #78350F;
        border-color: #92400E;
        color: #FCD34D;
    }
    
    .alert-info {
        background-color: #1E3A8A;
        border-color: #1E40AF;
        color: #93C5FD;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero {
        background: white !important;
        color: black !important;
    }
    
    .alert {
        border: 1px solid #000 !important;
        background: white !important;
        color: black !important;
    }
}
