/* DROULAD / დროულად - Styles */

/* ========== CSS Variables ========== */
:root {
    --primary-blue: #1a2a6c;
    --primary-blue-dark: #0f1a45;
    --primary-blue-light: #2d4a9e;
    --white: #ffffff;
    --light-grey: #f4f7f6;
    --dark-grey: #333333;
    --text-grey: #666666;
    --border-grey: #e0e0e0;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;

    --gradient-primary: linear-gradient(135deg, #1a2a6c 0%, #2d4a9e 100%);
    --gradient-hero: linear-gradient(135deg, rgba(26, 42, 108, 0.95) 0%, rgba(45, 74, 158, 0.95) 100%);

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Georgian', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== Container ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Header ========== */
.header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-georgian {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    color: var(--white);
    font-weight: 500;
    position: relative;
}

.nav a:hover {
    opacity: 0.8;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
}

/* ========== Buttons ========== */
.btn-primary,
.btn-secondary,
.btn-search,
.btn-calculate {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-search,
.btn-calculate {
    background: var(--primary-blue);
    color: var(--white);
    width: 100%;
}

.btn-search:hover,
.btn-calculate:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-block {
    width: 100%;
}

/* ========== Hero Section ========== */
.hero {
    position: relative;
    background: var(--gradient-hero);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    overflow: hidden;
}

.hero::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,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,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>');
    background-size: cover;
    background-position: bottom;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.tracking-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
    color: var(--dark-grey);
}

.tracking-box h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.tracking-input-group {
    display: flex;
    gap: 1rem;
}

.tracking-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-grey);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.tracking-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.1);
}

.tracking-result {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.tracking-result.show {
    display: block;
}

.tracking-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tracking-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========== Calculator Section ========== */
.calculator-section {
    padding: 5rem 0;
    background: var(--light-grey);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-grey);
    margin-bottom: 3rem;
}

.calculator-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-grey);
}

.form-control {
    padding: 0.875rem;
    border: 2px solid var(--border-grey);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.1);
}

.calculator-result {
    display: none;
    padding: 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    animation: slideIn 0.3s ease-out;
}

.calculator-result.show {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Services Section ========== */
.services-section {
    padding: 5rem 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--border-grey);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-grey);
    line-height: 1.7;
}

/* ========== About Section ========== */
.about-section {
    padding: 5rem 0;
    background: var(--light-grey);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-grey);
}

.about-text strong {
    color: var(--primary-blue);
}

.about-list {
    list-style: none;
    margin-top: 1.5rem;
}

.about-list li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    color: var(--dark-grey);
}

/* ========== Footer ========== */
.footer {
    background: var(--primary-blue-dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.footer-col p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-link {
    color: var(--white);
    opacity: 0.9;
}

.social-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* ========== Modal ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-grey);
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--dark-grey);
}

.modal-content h2 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    text-align: center;
}

.modal-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-grey);
}

.modal-footer-text a {
    color: var(--primary-blue);
    font-weight: 600;
}

.modal-footer-text a:hover {
    text-decoration: underline;
}

/* ========== Messages ========== */
.message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
    text-align: center;
}

.message.show {
    display: block;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========== Dashboard ========== */
.dashboard-section {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.dashboard-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.dashboard-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.user-code {
    font-size: 1.1rem;
    opacity: 0.95;
}

.dashboard-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.dashboard-content h2 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    color: var(--dark-grey);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-grey);
    font-size: 1.1rem;
}

/* ========== Tables ========== */
.table-responsive {
    overflow-x: auto;
}

.parcels-table,
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.parcels-table th,
.parcels-table td,
.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-grey);
}

.parcels-table th,
.admin-table th {
    background: var(--light-grey);
    font-weight: 700;
    color: var(--primary-blue);
}

.parcels-table tr:hover,
.admin-table tr:hover {
    background: var(--light-grey);
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}

.status-received {
    background: #fff3cd;
    color: #856404;
}

.status-in-transit {
    background: #cce5ff;
    color: #004085;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-returned {
    background: #f8d7da;
    color: #721c24;
}

/* ========== Admin Panel ========== */
.admin-header {
    background: var(--primary-blue-dark);
}

.admin-section {
    padding: 3rem 0;
    background: var(--light-grey);
    min-height: calc(100vh - 200px);
}

.admin-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.admin-card h2 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.status-select {
    padding: 0.5rem;
    border: 2px solid var(--border-grey);
    border-radius: 6px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.status-select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.update-indicator {
    font-size: 0.875rem;
    color: var(--success);
}

/* ========== Admin Login ========== */
.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
}

.admin-login-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    width: 90%;
    text-align: center;
}

.admin-login-box h1 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.admin-login-box p {
    color: var(--text-grey);
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .tracking-box {
        padding: 1.5rem;
    }

    .tracking-input-group {
        flex-direction: column;
    }

    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .calculator-grid,
    .services-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .calculator-card,
    .about-text {
        padding: 2rem;
    }

    .parcels-table,
    .admin-table {
        font-size: 0.875rem;
    }

    .parcels-table th,
    .parcels-table td,
    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .modal-content {
        padding: 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}
/* ========== Hamburger Menu ========== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span {
    background: var(--dark-grey);
}

.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);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav a {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-grey);
        width: 100%;
        text-align: left;
        font-size: 1.1rem;
        color: var(--dark-grey);
    }
    
    .nav a:hover {
        color: var(--primary-blue);
    }
    
    .nav .btn-primary {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        background: var(--primary-blue);
        color: var(--white);
    }
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}
