/* Stiluri petro.h28.ro */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --body-bg: #ffffff;
    --body-color: #212529;
    --card-bg: #ffffff;
    --card-border: rgba(13, 110, 253, 0.08);
    --shadow-strong: 0 12px 40px rgba(13, 110, 253, 0.18);
}

:root[data-theme="dark"] {
    --primary-color: #38bdf8;
    --secondary-color: #94a3b8;
    --dark-color: #e2e8f0;
    --light-bg: rgba(30, 41, 59, 0.75);
    --body-bg: #0f172a;
    --body-color: #e2e8f0;
    --card-bg: rgba(15, 23, 42, 0.92);
    --card-border: rgba(148, 163, 184, 0.25);
    --shadow-strong: 0 18px 45px rgba(15, 118, 110, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--body-color);
    background-color: var(--body-bg);
    padding-top: 0 !important;
    margin: 0 !important;
}

html {
    margin: 0 !important;
    padding: 0 !important;
}

/* Navbar */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0 !important;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    margin: 0 0.2rem;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255,255,255,0.2);
    color: white !important;
}

[data-theme="dark"] .navbar {
    background-color: rgba(15, 23, 42, 0.95) !important;
    box-shadow: 0 16px 35px rgba(2, 6, 23, 0.6);
}

[data-theme="dark"] .navbar .nav-link {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    background-color: rgba(56, 189, 248, 0.18);
    color: #38bdf8 !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a67d8 100%);
    color: white;
    padding: 80px 0;
    margin-top: 0 !important;
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.9) 0%, rgba(59, 130, 246, 0.85) 100%);
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Cards */
.card {
    border: none;
    background-color: var(--card-bg);
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-title {
    font-weight: 600;
    color: var(--primary-color);
}

/* Services Grid */
.service-card {
    text-align: center;
    padding: 2rem;
}

.service-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

/* Partners/Reclame */
.partner-logo {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.partner-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.partner-card:hover {
    background: var(--light-bg);
}

/* Forms */
.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

.btn {
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a86ff 100%);
    border: none;
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(13, 110, 253, 0.3);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: rgba(13, 110, 253, 0.12);
    color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.2);
}

.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.nav-link:focus-visible,
.btn-theme-toggle:focus-visible {
    outline: 3px solid rgba(56, 189, 248, 0.6);
    outline-offset: 2px;
}

.btn-theme-toggle {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.btn-theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .btn-theme-toggle {
    border-color: rgba(148, 163, 184, 0.6);
    background: rgba(30, 41, 59, 0.9);
    color: var(--primary-color);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.alert-success {
    background-color: #d1e7dd;
    color: #0a3622;
}

.alert-danger {
    background-color: #f8d7da;
    color: #58151c;
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title.left::after {
    left: 0;
    transform: none;
}

/* About Section */
.about-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-image {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
}

[data-theme="dark"] footer {
    background-color: rgba(15, 23, 42, 0.95) !important;
    color: var(--body-color);
}

.social-links a {
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
    color: var(--primary-color) !important;
}

footer ul li a {
    transition: all 0.3s ease;
}

footer ul li a:hover {
    padding-left: 5px;
    color: var(--primary-color) !important;
}

.designer-credit {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    color: #f8f9fa;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    width: fit-content;
}

.designer-credit:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.4);
}

.designer-credit .designer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: var(--primary-color);
    font-size: 1.2rem;
}

.designer-credit .designer-text {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.designer-credit .designer-text a {
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.designer-credit .designer-text a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.designer-credit:hover .designer-text a::after {
    transform: scaleX(1);
}

.designer-credit:hover .designer-icon {
    background: rgba(255, 255, 255, 0.28);
}

.footer-visit-count {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.footer-visit-count i {
    color: var(--primary-color);
    margin-right: 0.35rem;
    font-size: 1rem;
}

.scroll-top-btn {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a86ff 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 35px rgba(13, 110, 253, 0.35);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1050;
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    box-shadow: 0 26px 45px rgba(13, 110, 253, 0.4);
    transform: translateY(-3px);
}

[data-theme="dark"] .scroll-top-btn {
    box-shadow: 0 20px 45px rgba(15, 118, 110, 0.35);
}

.scroll-top-btn i {
    font-size: 1.75rem;
}

/* Admin Dashboard */
.dashboard-stat {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a67d8 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dashboard-stat i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.dashboard-stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.table thead {
    background-color: var(--primary-color);
    color: white;
}

.badge {
    padding: 0.5em 0.75em;
    border-radius: 8px;
}

/* Loading Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card-icon,
    .service-card i {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand span {
        display: none;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem !important;
    }
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

[data-theme="dark"] .card,
[data-theme="dark"] .alert,
[data-theme="dark"] .table-responsive {
    background-color: var(--card-bg);
    color: var(--body-color);
    border-color: var(--card-border);
}

[data-theme="dark"] .bg-light {
    background-color: rgba(15, 23, 42, 0.85) !important;
}

[data-theme="dark"] .text-muted {
    color: #cbd5f5 !important;
}

[data-theme="dark"] .alert-info {
    background-color: rgba(56, 189, 248, 0.18);
    color: #bae6fd;
}

[data-theme="dark"] .alert-warning {
    background-color: rgba(251, 191, 36, 0.18);
    color: #fde68a;
}

[data-theme="dark"] .alert-danger {
    background-color: rgba(248, 113, 113, 0.2);
    color: #fecaca;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.4);
    color: var(--body-color);
}

[data-theme="dark"] .form-control::placeholder {
    color: rgba(226, 232, 240, 0.6);
}

[data-theme="dark"] .btn-outline-primary {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.6);
}

[data-theme="dark"] .btn-outline-primary:hover {
    background-color: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
