/* Modern CSS Reset and Variables */
:root {
    --primary-color: #C61A1A;
    --secondary-color: #ff4d4d;
    --background-color: #f8f9fa;
    --text-color: #2c3e50;
    --card-bg: rgba(255, 255, 255, 0.9);
    --transition: all 0.3s ease;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

body, html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: 'Inter', 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

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

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Modern Header */
.header {
    background: var(--gradient);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    max-height: 50px;
}

.main-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; /* Layoutul pe 3 coloane */
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    flex: 1; /* Extinde secțiunea principală */
    align-items: start; /* Asigură alinierea conținutului de sus */
}

/* Glassmorphism Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Modern Form Elements */
input, button {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: var(--transition);
    font-size: 1rem;
}

input {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(198, 26, 26, 0.1);
    outline: none;
}

button {
    background: var(--gradient);
    color: white;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(198, 26, 26, 0.3);
}

/* Modern Navigation */
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-list li a {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.menu-list li a:hover {
    background: var(--gradient);
    color: white;
    transform: translateX(5px);
}

/* Promo Section */
.promo-section {
    background: var(--gradient);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.promo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://my.zapptelecom.ro/media/patterns/header-bg.jpg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.promo-content {
    position: relative;
    z-index: 1;
}

.promo-content h2 {
    font-size: 2em; /* Dimensiune mai mare a titlului */
    margin-bottom: 15px;
}

.promo-content p {
    font-size: 1.2em; /* Text mai mare */
    margin-bottom: 25px; /* Spațiere mai mare */
}

/* Modern Buttons */
.btn-banner {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: var(--gradient);
    color: white;
}

.promo-image img {
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Right Section */
.details-section h3 {
    font-size: 1.6em; /* Dimensiune mai mare a titlului */
    margin-bottom: 15px;
    color: white;
}

.details-section form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: white;
}

/* Footer */
.footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .promo-section {
        padding: 2rem;
    }

    .promo-content h2 {
        font-size: 1.5em;
    }

    .promo-content p {
        font-size: 1em;
    }

    .promo-image img {
        max-height: 150px;
    }

    .menu-section {
        padding: 15px;
    }

    .details-section {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .promo-content h2 {
        font-size: 1.3em;
    }

    .promo-content p {
        font-size: 0.9em;
    }

    .btn-banner {
        padding: 10px 18px;
        font-size: 0.9em;
    }

    .promo-image img {
        max-height: 120px;
    }

    .details-section input {
        padding: 10px;
    }

    .details-section button {
        padding: 10px;
        font-size: 0.9em;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --text-color: #ffffff;
        --card-bg: rgba(255, 255, 255, 0.05);
    }
    
    input {
        background: rgba(255, 255, 255, 0.05);
        color: white;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .promo-section, .menu-section {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notifications {
    position: relative;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4d4d;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 50%;
}

/* Search Container */
.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 1rem 2.5rem 1rem 1rem;
    border-radius: 12px;
    border: 2px solid transparent;
    background: var(--card-bg);
    transition: var(--transition);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    opacity: 0.5;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(198, 26, 26, 0.3);
}

/* Activity Timeline */
.activity-timeline {
    margin-top: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.activity-content p {
    margin: 0;
    font-weight: 500;
}

.activity-content small {
    color: rgba(255, 255, 255, 0.7);
}

/* Promo Features */
.promo-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: var(--transition);
}

.feature:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.feature i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Footer Links */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
}

/* Input Group */
.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    opacity: 0.5;
}

.input-group input {
    padding-left: 2.5rem;
}

/* Terms Text */
.terms {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.terms a {
    color: var(--primary-color);
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

/* Dark Mode Specific Styles */
body.dark-mode {
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.05);
}

body.dark-mode .card {
    background: var(--card-bg);
}

body.dark-mode input {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

body.dark-mode .search-input {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .promo-features {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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