/**
 * CHEREKA SMS - Main Stylesheet
 * File: css/style.css
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Tailwind Config Colors */
:root {
    --primary: #B8860B;
    --secondary: #DAA520;
    --primary-hover: #9A7209;
}

/* Base Styles */
body {
    font-family: 'Inter', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Animations */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}
.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}
.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}
.animate-fade-in-delay-3 {
    animation: fadeInUp 1s ease-out 0.9s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}
.animate-float-delay {
    animation: float 6s ease-in-out 2s infinite;
}
.animate-float-delay-2 {
    animation: float 6s ease-in-out 4s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Navigation Effects */
.nav-link:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Dark mode support */
.dark body {
    background-color: #1f2937;
    color: #f3f4f6;
}

/* Form Styles - Enhanced for Login/Auth Pages */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    line-height: 1.5;
    background-color: #ffffff;
    color: #111827;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
    background-color: #ffffff;
}

.form-input::placeholder {
    color: #9ca3af;
}

.dark .form-input {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.dark .form-input:focus {
    border-color: var(--primary);
    background-color: #374151;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.dark .form-input::placeholder {
    color: #6b7280;
}

/* Form Input with Icons */
.form-input.pl-10 {
    padding-left: 2.5rem;
}

.form-input.pr-10 {
    padding-right: 2.5rem;
}

/* Input Group Styles */
.input-group {
    position: relative;
}

.input-group .input-icon-left {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    z-index: 10;
}

.input-group .input-icon-right {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
}

.input-group .input-icon-right:hover {
    color: #6b7280;
}

.dark .input-group .input-icon-left,
.dark .input-group .input-icon-right {
    color: #6b7280;
}

.dark .input-group .input-icon-right:hover {
    color: #9ca3af;
}

/* Form Labels */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.dark .form-label {
    color: #d1d5db;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

/* Checkbox Styles */
input[type="checkbox"] {
    accent-color: var(--primary);
}

/* Select Styles */
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    background-color: #ffffff;
    color: #111827;
    transition: all 0.2s ease;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.dark .form-select {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.dark .form-select:focus {
    border-color: var(--primary);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary);
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    border: 2px solid white;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    transform: scale(1);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary);
    transform: scale(1.05);
}

/* Package Card Styles */
.feature-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.feature-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-8px);
}

.dark .feature-card {
    background-color: #1f2937;
    color: #f9fafb;
}

.package-card {
    position: relative;
    overflow: hidden;
}

/* Popular Package Badge */
.package-popular::before {
    content: 'Popular';
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-bottom-left-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
}

/* Stats Card Styles */
.stats-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dark .stats-card {
    background-color: #1f2937;
}

/* FAQ Styles */
.faq-item {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.dark .faq-item {
    background-color: #374151;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

.faq-question:focus {
    outline: none;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Icon Styles */
.icon-circle {
    width: 2rem;
    height: 2rem;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle-large {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Message Styles */
.message-success {
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    margin: 1rem 0;
    display: flex;
    align-items: center;
}

.message-error {
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    margin: 1rem 0;
    display: flex;
    align-items: center;
}

.message-info {
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
    margin: 1rem 0;
    display: flex;
    align-items: center;
}

/* Dark mode message styles */
.dark .message-success {
    background-color: #065f46;
    color: #d1fae5;
    border-color: #047857;
}

.dark .message-error {
    background-color: #7f1d1d;
    color: #fecaca;
    border-color: #dc2626;
}

.dark .message-info {
    background-color: #1e3a8a;
    color: #dbeafe;
    border-color: #3b82f6;
}

/* Table Styles */
.data-table {
    min-width: 100%;
    table-layout: auto;
}

.data-table th {
    padding: 1.5rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #f9fafb;
}

.dark .data-table th {
    color: #d1d5db;
    background-color: #374151;
}

.data-table td {
    padding: 1.5rem 1rem;
    white-space: nowrap;
    font-size: 0.875rem;
    border-bottom: 1px solid #e5e7eb;
}

.dark .data-table td {
    border-color: #374151;
}

.data-table tr:hover {
    background-color: #f9fafb;
}

.dark .data-table tr:hover {
    background-color: #1f2937;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 28rem;
    width: 100%;
    margin: 1rem;
}

.dark .modal-content {
    background-color: #1f2937;
}

/* Dashboard Styles */
.sidebar {
    width: 16rem;
    min-height: 100vh;
    background-color: #f9fafb;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dark .sidebar {
    background-color: #1f2937;
}

.sidebar-nav-item {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}

.sidebar-nav-item:hover {
    background-color: #e5e7eb;
}

.dark .sidebar-nav-item:hover {
    background-color: #374151;
}

.sidebar-nav-item.active {
    background-color: var(--primary);
    color: white;
}

/* Service Package Pricing Styles */
.package-price {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.package-price-period {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 400;
}

.dark .package-price-period {
    color: #9ca3af;
}

/* Package Features List */
.package-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-features li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: #6b7280;
}

.dark .package-features li {
    color: #9ca3af;
}

.package-features .check-icon {
    color: #10b981;
    margin-right: 0.75rem;
    font-size: 1rem;
}

/* Contact Section Styles */
.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-info-item h4 {
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem 0;
}

.dark .contact-info-item h4 {
    color: #f9fafb;
}

.contact-info-item p {
    color: #6b7280;
    margin: 0;
}

.dark .contact-info-item p {
    color: #9ca3af;
}

/* Footer Styles */
footer {
    background-color: #111827;
    color: #f9fafb;
}

footer h3,
footer h4 {
    color: var(--primary);
}

footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--primary);
}

/* Utility Classes */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.hover\:bg-primary:hover {
    background-color: var(--primary) !important;
}

.focus\:ring-primary:focus {
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1) !important;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Additional Package Card Enhancements */
.package-card .btn-primary {
    width: 100%;
    margin-top: 1rem;
    transform: scale(1);
    transition: all 0.3s ease;
}

.package-card .btn-primary:hover {
    transform: scale(1.05);
}

.package-card h3 {
    color: #111827;
    margin-bottom: 1rem;
}

.dark .package-card h3 {
    color: #f9fafb;
}

/* Service Section Grid Fix */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* FAQ Arrow Rotation */
.faq-question i.rotate-180 {
    transform: rotate(180deg);
}

.faq-question i {
    transition: transform 0.2s ease;
}

/* Auth Form Specific Styles */
.auth-section {
    transition: all 0.3s ease;
}

.section-nav {
    transition: all 0.2s ease;
    border: none;
    background: none;
    cursor: pointer;
}

.section-nav:focus {
    outline: none;
}

/* Auth Input Icon Positioning - Fixed for Login Form */
.relative .absolute.inset-y-0.left-0 {
    left: 0;
    display: flex;
    align-items: center;
    padding-left: 0.75rem;
    pointer-events: none;
}

.relative .absolute.inset-y-0.right-0 {
    right: 0;
    display: flex;
    align-items: center;
    padding-right: 0.75rem;
}

/* Ensure proper icon spacing in auth forms */
.relative .absolute.inset-y-0.left-0 + .form-input {
    padding-left: 2.5rem;
}

.relative .form-input.pl-10 {
    padding-left: 2.5rem;
}

.relative .form-input.pr-10 {
    padding-right: 2.5rem;
}

/* Auth specific button styles */
.auth-section .btn-primary {
    width: 100%;
    justify-content: center;
    font-weight: 600;
    padding: 0.875rem 1rem;
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Override any conflicting styles */
.feature-card * {
    box-sizing: border-box;
}

/* Ensure proper spacing in package cards */
.feature-card .text-center > * {
    margin-bottom: 1rem;
}

.feature-card .text-center > *:last-child {
    margin-bottom: 0;
}

/* Focus states for accessibility */
input:focus,
button:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Remove default focus outline when custom focus is applied */
.form-input:focus,
.btn-primary:focus,
.btn-secondary:focus {
    outline: none;
}

/* Additional Dropdown Styles for Header */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 12rem;
    background-color: #ffffff;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    z-index: 50;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease-in-out;
    pointer-events: none;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dark .dropdown-menu {
    background-color: #374151;
    border-color: #4b5563;
}

/* Dashboard Dropdown Link Styles */
.dashboard-dropdown-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    margin: 0.125rem;
}

.dashboard-dropdown-link:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.dashboard-dropdown-link i {
    width: 1rem;
    margin-right: 0.5rem;
}

.dark .dashboard-dropdown-link {
    color: #d1d5db;
}

.dark .dashboard-dropdown-link:hover {
    background-color: #4b5563;
    color: #f9fafb;
}

/* Dashboard Navigation Link Styles */
.dashboard-nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.dashboard-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fef3c7;
}

.dashboard-nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fef3c7;
}

/* Ensure proper positioning */
.dropdown .dashboard-nav-link {
    cursor: pointer;
}

/* Fix z-index issues */
.dropdown-menu {
    z-index: 9999 !important;
}

/* Mobile dropdown adjustments */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        margin-top: 0;
    }
    
    .dashboard-dropdown-link {
        color: white;
        padding-left: 2rem;
    }
    
    .dashboard-dropdown-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fef3c7;
    }
}

/* ====== ADDITIONAL CENTRALIZED STYLES FROM HEADER.PHP ====== */

/* Additional Dashboard Mobile Navigation */
.dashboard-mobile-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.dashboard-mobile-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fef3c7;
}

.dashboard-mobile-nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fef3c7;
}

/* Enhanced Hero Styles */
.hero-title {
    background: linear-gradient(45deg, #ffffff, #f3f4f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Mobile Menu Animation */
.mobile-menu-enter {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Navigation Links */
.mobile-nav-link {
    display: block;
    padding: 0.75rem;
    color: #374151;
    text-decoration: none;
    transition: color 0.2s ease;
}

.dark .mobile-nav-link {
    color: #d1d5db;
}

.mobile-nav-link:hover {
    color: var(--primary);
}

/* Enhanced Package Cards - Additional Styling */
.package-popular {
    position: relative;
    border: 2px solid var(--primary);
}

.package-popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    z-index: 10;
}

/* Additional Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem !important;
    }
    
    .mobile-nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .dark .mobile-nav-link {
        border-color: #374151;
    }
    
    .mobile-nav-link:last-child {
        border-bottom: none;
    }
}