:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4cc9f0;
    --gray: #6c757d;
    --free: #4caf50;
    --premium: #ff9800;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-800: #343a40;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--dark);
}


/* Header Styles */
.header {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
}

.header-brand i {
    color: var(--accent);
    font-size: 1.8rem;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 0 0 2rem 0;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    display: block;
    text-decoration: none;
    transition: var(--transition);
}

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

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

.footer-social a {
    font-size: 1.25rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Card Styles */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--gray-200);
    color: var(--dark);
}

.btn-secondary:hover {
    background-color: var(--gray-300);
}

.btn-success {
    background: linear-gradient(90deg, var(--success) 0%, green 100%);
    border-color: var(--success);
    color: white;
}


.btn-success:hover {
    background: linear-gradient(10deg, var(--success) 0%, green 100%);
    border-color: var(--success);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Home Page Styles */
.hero-section {
    /*background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);*/
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    text-align: center;
}


.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.category-header {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--box-shadow);
}

.category-header i {
    font-size: 1.5rem;
    color: var(--primary);
}

.category-header h2 {
    margin: 0;
    font-weight: 600;
}


.categories {
    margin-bottom: 3rem;
}

.categories h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--secondary);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.nav-pills .nav-link.category-tab {
    padding: 0.8rem 1.5rem;
    background: white;
    border-radius: 30px;
    color: var(--dark);
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.nav-pills .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: none;

}

.nav-pills .nav-link.category-tab.active {
    background: var(--primary);
    color: white;
}

.category-content {
    display: none;
}

.category-content.active {
    display: block;
}

.contact-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    text-align: center;
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}


.frame-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.frame-img i {
    color: var(--accent);
}

.frame-img {
    height: 200px;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    position: relative;
}

.frame-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-free {
    background: var(--free);
    color: white;
}

.badge-premium {
    background: var(--premium);
    color: white;
}

.frame-content {
    padding: 1.5rem;
}

.frame-content h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.frame-content p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Admin Dashboard Styles */
.admin-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.admin-sidebar {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    height: fit-content;
}

.admin-nav {
    list-style: none;
}

.admin-nav-item {
    margin-bottom: 0.5rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--dark);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: linear-gradient(90deg, rgba(67, 97, 238, 0.1) 0%, rgba(58, 12, 163, 0.1) 100%);
    color: var(--primary);
}

.admin-nav-link i {
    width: 20px;
    text-align: center;
}

.admin-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-800);
    font-weight: 500;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.table tr:last-child td {
    border-bottom: none;
}

/* Frame Customization Page */
.customization-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    height: calc(100vh - 200px);
}

.preview-container {
    background: var(--gray-200);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    height: 100%;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.uploaded-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: move;
}

.customization-options {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    overflow-y: auto;
}

.option-group {
    margin-bottom: 2rem;
}

.option-group h4 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--secondary);
}

.similar-frames {
    margin-top: 2rem;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.similar-frames-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.similar-frame {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.similar-frame:hover {
    transform: translateY(-3px);
}

.similar-frame {
    height: 100px;
    background-size: cover;
    background-position: top center;

}

/* Password strength */
.password-strength {
    height: 5px;
    margin-top: 5px;
    border-radius: 3px;
}

.password-weak {
    background-color: #dc3545;
    width: 33%;
}

.password-medium {
    background-color: #ffc107;
    width: 66%;
}

.password-strong {
    background-color: #28a745;
    width: 100%;
}

/* Password requirements */
.password-requirements {
    font-size: 0.85rem;
    color: #6c757d;
}

.password-requirements ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.password-requirements li.requirement-met {
    color: #28a745;
}

.password-requirements li.requirement-not-met {
    color: #dc3545;
}

/* Password toggle */
.password-toggle {
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive Design */
@media (max-width: 992px) {
    .admin-container {
        grid-template-columns: 1fr;
    }

    .customization-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .header {
        flex-direction: column;
        padding: 1rem;
    }

    .header-nav {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .frames-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}


.is-mobile .preview-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

#canvas {
    touch-action: none;
    /* Prevents browser handling of touch gestures */
}

/* Language Switcher */
.language-switcher {
    padding: 0 1rem;
}

.language-switcher a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
}

.language-switcher a.active {
    color: white;
    font-weight: 600;
}

.language-switcher a:hover {
    color: whitesmoke;
}