/* The One Place Digital Service - Main Stylesheet */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* Language Toggle */
.language-toggle {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.lang-btn {
    padding: 8px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.8);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Modern Header Styles */
.modern-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-main {
    background: transparent !important;
    padding: 0.15rem 0;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    padding-right: 0.25rem;
}

.navbar-main .navbar-brand {
    display: flex;
    align-items: center;
    color: white !important;
    font-weight: 700;
    font-size: 1.1rem;
    gap: 0;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 0;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.brand-tagline {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.navbar-main .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.3rem 0.4rem !important;
    transition: var(--transition);
    border-radius: 4px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
}

.navbar-main .navbar-nav .nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-main .navbar-nav .nav-link i {
    font-size: 0.6rem;
}

.btn-cta {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 0.25rem 0.6rem !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    transition: var(--transition);
    font-size: 0.65rem;
    margin-left: 0.25rem;
}

.btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
}

.navbar-main .dropdown-menu {
    background: white;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    margin-top: 6px;
    padding: 4px;
}

.navbar-main .dropdown-item {
    color: var(--text-dark);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
}

.navbar-main .dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    transform: translateX(2px);
}

.navbar-main .dropdown-item i {
    font-size: 0.6rem;
    width: 16px;
    text-align: center;
}

.navbar-main .dropdown-divider {
    margin: 4px 0;
    border-color: var(--border-color);
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .brand-text {
        display: flex;
        flex-direction: column;
        line-height: 1;
    }
    
    .brand-name {
        font-size: 0.9rem;
        font-weight: 700;
        color: white;
    }
    
    .brand-tagline {
        display: none;
    }
    
    .navbar-main .navbar-brand {
        min-width: auto;
        width: auto;
    }
    
    .navbar-toggler {
        display: block !important;
        visibility: visible !important;
    }
    
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        margin-top: 0.25rem;
        padding: 0.25rem;
    }
    
    .navbar-nav {
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        width: 100%;
        text-align: center;
        border-radius: 4px;
        margin-bottom: 0.15rem;
        font-size: 0.55rem;
        padding: 0.2rem 0.3rem !important;
    }
    
    .btn-cta {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.55rem;
        margin-left: 0;
    }
}

/* Main Content */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    animation: float 3s ease-in-out infinite;
}

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

/* Main Content */
.main-content {
    min-height: 60vh;
    padding: 0;
}

/* Service Cards */
.service-card {
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Why Choose Us */
.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Booking Form */
.booking-form {
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin: 2rem 0;
}

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

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Dashboard */
.dashboard-card {
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.booking-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.booking-item:hover {
    box-shadow: var(--shadow-md);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: white;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: white;
    margin-top: 5rem;
}

.footer-top {
    padding: 4rem 0 2rem;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

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

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

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.contact-info {
    color: #9ca3af;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background: #111827;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: #9ca3af;
    margin: 0;
}

.footer-links-bottom {
    text-align: right;
}

.footer-links-bottom a {
    color: #9ca3af;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: var(--transition);
}

.footer-links-bottom a:hover {
    color: white;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

.alert {
    border-radius: 10px;
    border: none;
    box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .btn-book-now {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .language-toggle {
        top: 10px;
        right: 10px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-links-bottom {
        text-align: center;
        margin-top: 1rem;
    }
    
    .footer-links-bottom a {
        margin: 0 0.5rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card,
    .feature-card,
    .booking-form {
        padding: 1.5rem;
    }
    
    .footer-top {
        padding: 2rem 0 1rem;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

/* Loading Spinner */
.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .whatsapp-float,
    .language-toggle,
    .btn-book-now {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
}

/* Mobile Dropdown Fixes */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none !important;
        background-color: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item {
        color: rgba(255, 255, 255, 0.8) !important;
        padding: 0.5rem 1rem 0.5rem 2rem !important;
        border-radius: 0 !important;
        transition: all 0.3s ease !important;
        display: block !important;
        width: 100% !important;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item:hover,
    .navbar-nav .dropdown-menu .dropdown-item:focus {
        color: #fff !important;
        background-color: rgba(255, 255, 255, 0.1) !important;
        transform: translateX(5px) !important;
    }
    
    .navbar-nav .dropdown-menu .dropdown-divider {
        border-color: rgba(255, 255, 255, 0.2) !important;
        margin: 0.5rem 0 !important;
    }
    
    .navbar-nav .nav-link.dropdown-toggle {
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 8px !important;
        margin: 0.25rem 0 !important;
    }
    
    .navbar-nav .nav-link.dropdown-toggle:hover {
        background: rgba(255, 255, 255, 0.2) !important;
    }
    
    .navbar-nav .dropdown.show .nav-link.dropdown-toggle {
        background: rgba(255, 255, 255, 0.2) !important;
        color: #fff !important;
    }
    
    /* Force dropdown to be visible in mobile */
    .navbar-collapse.show .navbar-nav .dropdown-menu {
        display: block !important;
    }
}

/* Touch-friendly dropdown for mobile */
@media (max-width: 767.98px) {
    .navbar-nav .dropdown-menu .dropdown-item {
        padding: 0.75rem 1rem 0.75rem 2.5rem;
        font-size: 0.9rem;
        min-height: 44px; /* Touch target size */
        display: flex;
        align-items: center;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item i {
        margin-right: 0.5rem;
        width: 16px;
        text-align: center;
    }
    
    /* Special styling for logout item */
    .navbar-nav .dropdown-menu .dropdown-item[href="logout.php"] {
        color: #ff6b6b !important;
        background-color: rgba(255, 107, 107, 0.1) !important;
        border-radius: 8px !important;
        margin: 0.5rem 1rem !important;
        font-weight: 500 !important;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item[href="logout.php"]:hover,
    .navbar-nav .dropdown-menu .dropdown-item[href="logout.php"]:focus {
        color: #fff !important;
        background-color: #ff6b6b !important;
        transform: translateX(5px) !important;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item[href="logout.php"] i {
        color: inherit !important;
    }
}
