/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Admin main content area - add top padding for fixed header */
.admin-main {
    padding-top: 100px;
    min-height: 100vh;
}

/* Header and Navigation */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
}

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

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-img-clip {
    overflow: hidden;
    height: 60px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 210px;
    width: auto;
    flex-shrink: 0;
}

.tagline {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 400;
    margin-top: -8px;
    font-style: italic;
}

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

.nav-menu a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2d3748;
}

.nav-menu a.login-link {
    background: #2d3748;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-menu a.login-link:hover {
    background: #1a202c;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(45, 55, 72, 0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #4a5568;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 120px 0 80px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    z-index: 0;
}

.hero-decoration-left {
    top: 15%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
}

.hero-decoration-right {
    bottom: 15%;
    right: 5%;
    animation: float 6s ease-in-out infinite 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

.hero-content {
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.search-section {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    border-top: 3px solid #a0aec0;
    position: relative;
}

.search-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #a0aec0, #cbd5e0, #a0aec0);
    border-radius: 2px;
}

.search-section h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.zip-search-form .input-group {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.zip-search-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.zip-search-form input:focus {
    outline: none;
    border-color: #4a5568;
}

.zip-search-form button {
    background: #2d3748;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.zip-search-form button:hover {
    background: #1a202c;
}

.price-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #4a5568;
    text-align: center;
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: white;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 3rem;
    font-weight: 600;
}

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

.service-card {
    background: linear-gradient(135deg, #f7fafc 0%, #ffffff 100%);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #cbd5e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #cbd5e0, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-left-color: #a0aec0;
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: #4a5568;
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background: #f7fafc;
}

.pricing h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 3rem;
    font-weight: 600;
}

.pricing-card {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.price-header {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.price-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.price-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.price-subtext {
    font-size: 1.1rem;
    opacity: 0.9;
}

.price-features {
    padding: 2.5rem;
}

.price-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.price-features ul li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    color: #4a5568;
    border-bottom: 1px solid #e2e8f0;
}

.price-features ul li:last-child {
    border-bottom: none;
}

.pricing-cta {
    width: 100%;
    background: #2d3748;
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pricing-cta:hover {
    background: #1a202c;
}

/* Why Choose Section */
.why-choose {
    padding: 80px 0;
    background: white;
}

.why-choose h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 3rem;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.feature h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature p {
    color: #4a5568;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 3rem;
    font-weight: 600;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-info p {
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-label {
    font-weight: 600;
    color: #2d3748;
    min-width: 60px;
}

.contact-form {
    background: #f7fafc;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a5568;
}

.submit-btn {
    background: #2d3748;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #1a202c;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
}

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

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

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #a0aec0;
}

/* Results Page Styles */
.results-header {
    background: #f7fafc;
    padding: 100px 0 40px;
    border-bottom: 1px solid #e2e8f0;
}

.results-header h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
    text-align: center;
}

.results-info {
    text-align: center;
    color: #4a5568;
    font-size: 1.1rem;
}

.results-section {
    padding: 60px 0;
}

.funeral-home-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.funeral-home-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.funeral-home-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
}

.funeral-home-info h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.funeral-home-info .address {
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.funeral-home-info .phone {
    color: #2d3748;
    font-weight: 500;
}

.contact-btn {
    background: #2d3748;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background: #1a202c;
}

.funeral-home-details p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.services-offered {
    margin-top: 1rem;
}

.services-offered h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.services-offered ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.services-offered ul li {
    background: #f7fafc;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #4a5568;
}

.no-results {
    text-align: center;
    padding: 4rem 0;
}

.no-results h2 {
    color: #4a5568;
    margin-bottom: 1rem;
}

.no-results p {
    color: #718096;
    margin-bottom: 2rem;
}

.back-btn {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.back-btn:hover {
    background: #cbd5e0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 999;
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .zip-search-form .input-group {
        flex-direction: column;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .funeral-home-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .services-offered ul {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Order Form Styles */
.order-header {
    background: #f7fafc;
    padding: 100px 0 40px;
    border-bottom: 1px solid #e2e8f0;
}

.order-header h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
    text-align: center;
}

.order-subtitle {
    text-align: center;
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.progress-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
}

.progress-step.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2d3748;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step-label {
    font-size: 0.9rem;
    color: #4a5568;
}

.order-form-section {
    padding: 60px 0;
}

.order-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    align-items: start;
}

.form-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-section h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: end;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2d3748;
}

.form-group small {
    color: #718096;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}

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

.checkbox-label,
.form-group .checkbox-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
    width: 100%;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-mark {
    background: #2d3748;
    border-color: #2d3748;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-mark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.medical-device-info {
    display: block;
    margin-top: 1rem;
    padding: 1.25rem;
    background: #fff5f5;
    border-left: 4px solid #e53e3e;
    border-radius: 6px;
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.7;
}

.medical-device-info strong {
    color: #2d3748;
}

.order-submit-btn {
    background: #2d3748;
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.order-submit-btn:hover {
    background: #1a202c;
}

.order-submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #2d3748;
}

.order-save-btn {
    background: #2d3748;
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.order-save-btn:hover {
    background: #1a202c;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.summary-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.summary-card h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-line.total {
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 2px solid #2d3748;
    color: #2d3748;
}

.summary-features {
    margin-top: 2rem;
}

.summary-features h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 600;
}

.summary-features ul {
    list-style: none;
    padding: 0;
}

.summary-features ul li {
    padding: 0.25rem 0;
    color: #4a5568;
    font-size: 0.9rem;
}

.trust-badges {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge {
    background: #f7fafc;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #2d3748;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .order-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .summary-card {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .progress-bar {
        gap: 1rem;
    }
    
    .order-header h1 {
        font-size: 2rem;
    }
}

/* Auth Section Styles */
.auth-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.auth-decoration {
    position: absolute;
    z-index: 0;
}

.auth-decoration-left {
    top: 20%;
    left: 10%;
    animation: float 7s ease-in-out infinite;
}

.auth-decoration-right {
    bottom: 20%;
    right: 10%;
    animation: float 7s ease-in-out infinite 3.5s;
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.auth-form {
    background: white;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #a0aec0;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: none;
    position: relative;
}

.auth-form::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #a0aec0, #cbd5e0, #a0aec0);
    border-radius: 2px;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    color: #2d3748;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: #718096;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.auth-links {
    margin-top: 2rem;
    text-align: center;
}

.auth-links p {
    margin: 0.5rem 0;
    color: #4a5568;
}

.auth-links a {
    color: #2d3748;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #2d3748;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #1a202c;
}

.btn-primary {
    background: #2d3748;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 0.5rem;
}

.btn-primary:hover {
    background: #1a202c;
}

.btn-secondary {
    background: #718096;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background: #4a5568;
}

/* Small button variant */
.btn-sm {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    width: auto !important;
    margin-top: 0 !important;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sm.btn-primary {
    background: #2d3748;
    color: white;
}

.btn-sm.btn-primary:hover {
    background: #1a202c;
}

.btn-sm.btn-secondary {
    background: #718096;
    color: white;
}

.btn-sm.btn-secondary:hover {
    background: #4a5568;
}

@media (max-width: 768px) {
    .auth-form {
        padding: 2rem;
    }

    .auth-section {
        padding: 100px 0 60px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .search-section {
        padding: 1.5rem;
    }

    .services,
    .why-choose,
    .contact {
        padding: 60px 0;
    }

    .services h2,
    .why-choose h2,
    .contact h2 {
        font-size: 2rem;
    }

    .form-section {
        padding: 1.5rem;
    }

    .order-form-section {
        padding: 40px 0;
    }

    .auth-form {
        padding: 1.5rem;
    }

    .auth-form h2 {
        font-size: 1.5rem;
    }
}

/* Customer Dashboard Styles */
.dashboard-header {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 120px 0 40px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 300"><g opacity="0.04"><path d="M100,150 Q150,100 200,150 T300,150" fill="none" stroke="%23718096" stroke-width="2"/><circle cx="150" cy="130" r="6" fill="%23a0aec0"/><circle cx="180" cy="140" r="4" fill="%23cbd5e0"/><path d="M900,150 Q950,100 1000,150 T1100,150" fill="none" stroke="%23718096" stroke-width="2"/><circle cx="950" cy="130" r="6" fill="%23a0aec0"/><circle cx="980" cy="140" r="4" fill="%23cbd5e0"/></g></svg>');
    background-size: cover;
    pointer-events: none;
}

.welcome-section h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: #718096;
    font-size: 1.1rem;
}

.dashboard-content {
    padding: 60px 0;
    background: white;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.dashboard-card h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.3rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    margin-bottom: 0;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.action-btn.primary {
    background: #2d3748;
    color: white;
}

.action-btn.primary:hover {
    background: #1a202c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 55, 72, 0.2);
}

.action-btn.secondary {
    background: #f7fafc;
    color: #2d3748;
    border: 1px solid #e2e8f0;
}

.action-btn.secondary:hover {
    background: #edf2f7;
    transform: translateY(-2px);
}

.action-btn .icon {
    font-size: 1.5rem;
}

.order-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.orders-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.no-orders {
    text-align: center;
    padding: 3rem 1rem;
}

.no-orders p {
    color: #718096;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.order-card {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border: 1px solid #e2e8f0;
    border-left: 3px solid #cbd5e0;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.order-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #cbd5e0, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-left-color: #a0aec0;
}

.order-card:hover::after {
    opacity: 1;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.order-info h4 {
    color: #2d3748;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.order-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: #718096;
    font-size: 0.9rem;
}

.order-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-pending {
    background: #fef5e7;
    color: #d68910;
}

.status-confirmed {
    background: #e8f4fd;
    color: #1e72ab;
}

.status-progress {
    background: #e3f2fd;
    color: #1565c0;
}

.status-warning {
    background: #fff3e0;
    color: #e65100;
}

.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-cancelled {
    background: #ffebee;
    color: #c62828;
}

.order-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
}

.order-progress {
    margin-bottom: 1.5rem;
}

.order-progress .progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.order-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2d3748 0%, #4a5568 100%);
    transition: width 0.5s ease;
}

.progress-text {
    color: #718096;
    font-size: 0.9rem;
}

.order-details-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.order-details-preview strong {
    color: #2d3748;
    display: block;
    margin-bottom: 0.25rem;
}

.order-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.btn-link {
    background: none;
    border: none;
    color: #2d3748;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-link:hover {
    background: #f7fafc;
    color: #1a202c;
}

.btn-link.cancel {
    color: #c53030;
}

.btn-link.cancel:hover {
    background: #fff5f5;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-secondary.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

.modal-content.large {
    max-width: 800px;
}

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

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h2 {
    color: #2d3748;
    font-size: 1.8rem;
    margin: 0;
}

.close {
    color: #718096;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close:hover {
    color: #2d3748;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Order Details Grid */
.order-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.detail-section {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.detail-section h3,
.detail-section h4 {
    color: #2d3748;
    margin: 0 0 1rem 0;
    font-weight: 600;
    border-bottom: 2px solid #cbd5e0;
    padding-bottom: 0.5rem;
}

.detail-section p {
    margin: 0.5rem 0;
    color: #4a5568;
    line-height: 1.6;
}

.detail-section.full-width {
    grid-column: 1 / -1;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.order-details-full {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.order-summary,
.deceased-info,
.service-info,
.contact-info,
.status-history {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
}

.order-summary h3,
.deceased-info h4,
.service-info h4,
.contact-info h4,
.status-history h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span {
    color: #2d3748;
    font-size: 1rem;
}

.detail-item .amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
}

.status-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-entry {
    padding: 1rem;
    background: white;
    border-left: 3px solid #2d3748;
    border-radius: 4px;
}

.status-timestamp {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.status-description {
    color: #2d3748;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.status-note {
    color: #4a5568;
    font-size: 0.9rem;
    font-style: italic;
}

.order-actions-full {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.password-section {
    margin-top: 2rem;
}

.password-section h4 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Dashboard Responsive Styles */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .order-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 100px 0 30px;
    }

    .welcome-section h1 {
        font-size: 2rem;
    }

    .dashboard-content {
        padding: 40px 0;
    }

    .order-header {
        flex-direction: column;
    }

    .order-status {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .order-details-preview {
        grid-template-columns: 1fr;
    }

    .order-stats {
        grid-template-columns: 1fr;
    }

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

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .dashboard-card {
        padding: 1.5rem;
    }

    .welcome-section h1 {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .order-actions {
        flex-direction: column;
    }

    .btn-link {
        width: 100%;
        text-align: center;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }
}

/* Provider Info Page Styles */
.provider-hero {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    padding: 140px 0 80px;
    color: white;
    text-align: center;
}

.provider-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.provider-benefits {
    padding: 80px 0;
    background: white;
}

.provider-benefits h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 3rem;
    font-weight: 600;
}

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

.benefit-card {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #2d3748;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.benefit-card p {
    color: #4a5568;
    line-height: 1.6;
}

.how-it-works {
    padding: 80px 0;
    background: #f7fafc;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 4rem;
    font-weight: 600;
}

.steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 70px;
    width: 2px;
    height: calc(100% + 2rem);
    background: #e2e8f0;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #2d3748;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.step-content h3 {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content p {
    color: #4a5568;
    line-height: 1.6;
}

.pricing-info {
    padding: 80px 0;
    background: white;
}

.pricing-info h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 3rem;
    font-weight: 600;
}

.pricing-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-box {
    background: #f7fafc;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e2e8f0;
}

.pricing-box.featured {
    background: #2d3748;
    color: white;
    border-color: #2d3748;
    transform: scale(1.05);
}

.pricing-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.pricing-box.featured h3 {
    color: white;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.pricing-box.featured .price-amount {
    color: white;
}

.pricing-box p {
    color: #4a5568;
    line-height: 1.6;
}

.pricing-box.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.requirements {
    padding: 80px 0;
    background: #f7fafc;
}

.requirements h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 3rem;
    font-weight: 600;
}

.requirements-content {
    max-width: 800px;
    margin: 0 auto;
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.requirement-item {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.requirement-item .check {
    width: 40px;
    height: 40px;
    background: #48bb78;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.requirement-item h4 {
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.requirement-item p {
    color: #4a5568;
    line-height: 1.6;
}

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content > p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary-large {
    background: white;
    color: #2d3748;
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary-large:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary-large {
    background: transparent;
    color: white;
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid white;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary-large:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cta-note {
    margin-top: 1rem;
    font-size: 1rem;
    opacity: 0.9;
}

.cta-note a {
    color: white;
    text-decoration: underline;
}

/* Provider Info Responsive Styles */
@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-details {
        grid-template-columns: 1fr;
    }

    .pricing-box.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .provider-hero {
        padding: 120px 0 60px;
    }

    .provider-hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

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

    .step {
        flex-direction: column;
        gap: 1rem;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
        max-width: 300px;
    }
}

/* Partner Dashboard Styles */
.partner-dashboard-header {
    background: #f7fafc;
    padding: 120px 0 40px;
    border-bottom: 1px solid #e2e8f0;
}

.partner-dashboard-header .welcome-section h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.partner-dashboard-content {
    padding: 60px 0;
    background: white;
}

.partner-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-card.clickable {
    cursor: pointer;
}

.stat-card.clickable:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #3182ce;
}

.stat-card.active-filter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.stat-card.active-filter .stat-number,
.stat-card.active-filter .stat-label {
    color: white;
}

.stat-card.active-filter .stat-icon {
    filter: brightness(0) invert(1);
}

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

.stat-icon {
    font-size: 2.5rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-info .stat-label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.partner-section {
    display: none;
}

.partner-section.active {
    display: block;
}

.partner-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.partner-section-header h3 {
    font-size: 1.8rem;
    color: #2d3748;
    font-weight: 600;
}

.partner-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.partner-filters select {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: #2d3748;
    background: white;
    cursor: pointer;
}

.partner-orders-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.partner-order-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

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

.partner-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.partner-order-info h4 {
    color: #2d3748;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.partner-order-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: #718096;
    font-size: 0.9rem;
}

.partner-order-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.partner-order-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.partner-order-detail label {
    font-size: 0.85rem;
    color: #4a5568;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partner-order-detail span {
    color: #2d3748;
    font-size: 1rem;
}

.partner-order-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.partner-info-box {
    background: #e6fffa;
    border: 1px solid #81e6d9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.partner-info-box h4 {
    color: #234e52;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.partner-info-box p {
    color: #234e52;
    margin-bottom: 0.5rem;
}

.partner-info-box ul {
    list-style: none;
    padding-left: 0;
}

.partner-info-box ul li {
    color: #234e52;
    padding: 0.25rem 0;
}

/* Partner Account & Payment Sections */
.partner-account-form,
.partner-payment-form {
    max-width: 800px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
}

.partner-account-form h3,
.partner-payment-form h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Partner Dashboard Responsive */
@media (max-width: 1024px) {
    .partner-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partner-order-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .partner-dashboard-header {
        padding: 100px 0 30px;
    }

    .partner-dashboard-header .welcome-section h1 {
        font-size: 2rem;
    }

    .partner-stats-grid {
        grid-template-columns: 1fr;
    }

    .partner-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .partner-filters {
        width: 100%;
        flex-direction: column;
    }

    .partner-filters select,
    .partner-filters button {
        width: 100%;
    }

    .partner-order-header {
        flex-direction: column;
    }

    .partner-order-details {
        grid-template-columns: 1fr;
    }

    .partner-order-actions {
        flex-direction: column;
    }

    .partner-order-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stat-info .stat-number {
        font-size: 1.5rem;
    }

    .partner-order-info h4 {
        font-size: 1rem;
    }
}

/* Employee Management Styles */
.employees-container {
    margin-top: 2rem;
}

.employee-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 2rem;
    align-items: center;
}

.employee-info h4 {
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.employee-info p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.employee-role {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.role-badge {
    background: #edf2f7;
    color: #4a5568;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-inactive {
    background: #ffebee;
    color: #c62828;
}

.employee-actions {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.employee-actions button {
    white-space: nowrap;
}

.no-employees {
    text-align: center;
    padding: 3rem 1rem;
    color: #718096;
}

/* ============================================ */
/* ADMIN DASHBOARD - GENERAL STYLES */
/* ============================================ */

.admin-section {
    display: block;
    padding: 2rem 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
}

.admin-section:last-child {
    border-bottom: none;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-header h2 {
    margin: 0;
    color: #2d3748;
    font-size: 1.8rem;
}

.admin-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ============================================ */
/* ADMIN DASHBOARD - WELCOME BANNER */
/* ============================================ */

.welcome-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
}

.welcome-content h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.welcome-content h1 span {
    font-weight: 700;
}

.welcome-subtitle {
    margin: 0;
    opacity: 0.95;
    font-size: 1rem;
}

.welcome-date {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .welcome-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .welcome-content h1 {
        font-size: 1.5rem;
    }
}

/* ============================================ */
/* SEARCH BOXES */
/* ============================================ */

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box input::placeholder {
    color: #a0aec0;
}

/* ============================================ */
/* ADMIN FILTERS - IMPROVED LAYOUT */
/* ============================================ */

.admin-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-filters select {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-filters select:hover {
    border-color: #cbd5e0;
}

.admin-filters select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ============================================ */
/* IMPROVED TABLE STYLING */
/* ============================================ */

.orders-table-container,
.payments-table-container {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-table {
    width: 100%;
    min-width: 800px; /* Ensures table doesn't get squished */
    border-collapse: collapse;
    background: white;
}

.admin-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.admin-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.admin-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.admin-table tbody tr:nth-child(even) {
    background: #f7fafc;
}

.admin-table tbody tr:hover {
    background: #edf2f7;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-table tbody td {
    padding: 1rem;
    color: #2d3748;
    font-size: 0.95rem;
}

.admin-table tbody td:first-child {
    font-weight: 600;
    color: #667eea;
}

/* ============================================ */
/* ENHANCED STAT CARDS */
/* ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card.clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    border-color: #667eea;
}

.stat-card.clickable:active {
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 12px;
}

.stat-info {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #718096;
    margin-top: 0.25rem;
}

/* Active filter highlight for stat cards */
.stat-card.active-filter {
    border: 2px solid #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

/* ============================================ */
/* PARTNER CARDS (ADMIN DASHBOARD) */
/* ============================================ */

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.partner-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.partner-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.partner-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.partner-card-header h4 {
    margin: 0;
    color: #2d3748;
    font-size: 1.1rem;
}

.partner-card-body {
    margin-bottom: 1rem;
}

.partner-card-body p {
    margin: 0.5rem 0;
    color: #4a5568;
    font-size: 0.9rem;
}

.partner-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .employee-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .employee-actions {
        flex-direction: row;
    }

    /* Admin Dashboard Mobile Responsive */
    .admin-main {
        padding-top: 80px;
    }

    .welcome-banner {
        padding: 1.5rem;
    }

    .welcome-content h1 {
        font-size: 1.3rem;
    }

    .welcome-subtitle {
        font-size: 0.9rem;
    }

    .welcome-date {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    /* Admin header and filters */
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .admin-filters {
        width: 100%;
        flex-direction: column;
    }

    .admin-filters select,
    .search-box {
        width: 100%;
    }

    .admin-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }

    .admin-actions button,
    .admin-actions .search-box {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Table mobile improvements */
    .orders-table-container,
    .payments-table-container {
        border-radius: 0;
        margin: 1rem -20px; /* Extend to screen edges */
    }

    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table thead th,
    .admin-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    /* Stat cards - stack on mobile */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Partner cards */
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .partner-card-actions {
        flex-direction: column;
    }

    .partner-card-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .admin-table thead th,
    .admin-table tbody td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }
}