/* Klikkelj.at - Herold.at Inspired Design */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
    /* Premium Modern Color Palette */
    --primary-color: #0f172a;
    /* Slate 900 */
    --primary-dark: #020617;
    /* Slate 950 */
    --primary-light: #334155;
    /* Slate 700 */

    --accent-color: #3b82f6;
    /* Blue 500 */
    --accent-hover: #2563eb;
    /* Blue 600 */

    --success-color: #10b981;
    /* Emerald 500 */
    --warning-color: #f59e0b;
    /* Amber 500 */
    --danger-color: #ef4444;
    /* Red 500 */

    /* Neutral colors */
    --text-primary: #1e293b;
    /* Slate 800 */
    --text-secondary: #64748b;
    /* Slate 500 */
    --text-muted: #94a3b8;
    /* Slate 400 */

    --background-primary: #ffffff;
    --background-secondary: #f8fafc;
    /* Slate 50 */
    --background-tertiary: #f1f5f9;
    /* Slate 100 */

    --border-color: #e2e8f0;
    /* Slate 200 */
    --border-light: #f1f5f9;
    /* Slate 100 */

    /* Premium Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);

    /* Border radius - Softer curves */
    --radius-sm: 6px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--background-secondary);
    font-size: 16px;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--primary-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main content spacing */
main.container {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

/* Section spacing */
section {
    margin-bottom: var(--space-2xl);
}

section:last-child {
    margin-bottom: 0;
}

/* Promotions styling */
/* Header - Premium Style */
header {
    background: var(--background-primary);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.9);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
}

header h1 a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

header h1 i {
    color: var(--accent-color);
}

header .tagline {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: var(--space-sm);
    padding-left: var(--space-sm);
    border-left: 2px solid var(--border-color);
    display: none;
    /* Hide on mobile initially */
}

@media (min-width: 768px) {
    header .tagline {
        display: inline-block;
    }
}

/* Mobile Menu Toggle - Hidden on desktop */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    padding: 0.5rem;
    cursor: pointer;
    z-index: 2001;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    background: var(--background-secondary);
}

.main-nav a.btn {
    padding: 0.5rem 1rem;
    color: white;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1999;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--background-primary);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-2xl) var(--space-lg);
        gap: var(--space-md);
        box-shadow: var(--shadow-xl);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav a {
        width: 100%;
        padding: var(--space-md);
        border-radius: var(--radius);
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-light);
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .main-nav a:hover,
    .main-nav a.active {
        background: var(--background-secondary);
        color: var(--primary-color);
        transform: translateX(5px);
    }
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.btn-secondary {
    background: var(--background-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--background-secondary);
    border-color: var(--border-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

/* Cards & Containers */
.card,
.login-card,
.admin-user-card,
.admin-promotion-card,
.activity-list,
.quick-action-card,
.company-promotions {
    background: var(--background-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.card:hover,
.quick-action-card:hover {
    box-shadow: var(--shadow-md);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Form Controls */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--background-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {

    /* Text wrapping and overflow fixes */
    body,
    html {
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Company description text fixes */
    .description-content,
    .company-description,
    .promotion-description,
    .quill-content {
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        overflow: hidden;
    }

    /* Company title responsive */
    .company-profile h1,
    .company-card h3,
    h1,
    h2,
    h3 {
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        font-size: clamp(1.2rem, 4vw, 1.8rem) !important;
        line-height: 1.3;
    }

    /* URL and link breaking */
    .company-links a,
    .contact-info a,
    .social-links a {
        word-wrap: break-word;
        word-break: normal;
        overflow-wrap: break-word;
        display: block;
        max-width: 100%;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    /* Social links styling on mobile */
    .social-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .social-links a {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.25rem 0;
    }

    /* Container padding adjustments for mobile */
    .container {
        padding: 0 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Company content mobile fixes */
    .company-content,
    .company-card,
    .promotion-card {
        margin: 0;
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Reduce padding for company description on mobile */
    .company-description,
    .description-content {
        padding: 0.5rem;
        margin: 0.5rem 0;
    }

    /* Mobile text sizes */
    .company-description,
    .description-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--background-primary);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--space-xl) var(--space-lg);
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: var(--shadow-lg);
        border-right: 1px solid var(--border-color);
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav a {
        padding: var(--space-lg);
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
        font-size: 1.4rem;
        min-height: 60px;
        display: flex;
        align-items: center;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    /* Mobile category styles */
    .category-filter {
        display: none !important;
    }

    .category-dropdown {
        display: block !important;
        margin: 1rem 0;
        background: transparent;
    }

    .categories .category-dropdown {
        display: block !important;
    }

    /* Ensure categories section is visible */
    .categories {
        display: block !important;
        margin-bottom: 2rem;
    }

    .categories h2 {
        display: block !important;
        margin-bottom: 1rem;
    }

    /* Force show dropdown on mobile - additional specificity */
    .category-dropdown {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.main-nav a {
    padding: var(--space-md) var(--space-lg);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-color);
    background: var(--background-secondary);
}

.main-nav a.active {
    color: var(--primary-color);
    background: var(--background-secondary);
    font-weight: 600;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.main-nav .btn {
    margin-left: var(--space-md);
}

/* Buttons - Herold Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid transparent;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 40px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--background-primary);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--background-secondary);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.btn-success {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.btn-success:hover:not(:disabled) {
    background: #218838;
    border-color: #218838;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-full {
    width: 100%;
}

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

/* Main */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-form {
    display: flex;
    justify-content: center;
}

.search-input-group {
    display: flex;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
    background: white;
}

.search-input-group input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-input-group input:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 0.5rem;
    display: none;
}

.search-suggestion {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background-color 0.3s ease;
}

.search-suggestion:hover {
    background-color: #f8f9fa;
}

.search-suggestion:last-child {
    border-bottom: none;
}

.suggestion-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.suggestion-content h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 0.9rem;
}

.suggestion-content p {
    margin: 0.2rem 0 0 0;
    color: #6c757d;
    font-size: 0.8rem;
}

/* Categories */
.categories {
    margin-bottom: 3rem;
}

.categories h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

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

.category-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    color: #3498db;
    border: 2px solid #3498db;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Desktop category filter - default state */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 1.5rem 0;
}

/* Mobile category dropdown - hidden by default */
.category-dropdown {
    display: none;
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.category-dropdown-toggle {
    width: 100%;
    padding: 1rem 1.5rem;
    background: white;
    color: #3498db;
    border: 2px solid #3498db;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-dropdown-toggle:hover {
    background: #f8f9ff;
    transform: translateY(-1px);
}

.category-dropdown-toggle.active {
    background: #3498db;
    color: white;
}

.category-dropdown-toggle i {
    transition: transform 0.3s ease;
}

.category-dropdown-toggle.active i {
    transform: rotate(180deg);
}

.category-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #3498db;
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 10;
}

.category-dropdown-menu.active {
    max-height: 400px;
}

.category-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-dropdown-item:hover {
    background: #f8f9ff;
    color: #4c63d2;
}

.category-dropdown-item.active {
    background: #3498db;
    color: white;
}


/* Companies */
.companies h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.count {
    font-size: 1rem;
    color: #6c757d;
    font-weight: normal;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.company-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.company-card.featured {
    border: 2px solid #ffd700;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.company-card.top-listing {
    border: 2px solid #28a745;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.2);
}

.company-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.company-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.company-card:hover .company-image img {
    transform: scale(1.05);
}

/* Badges */
.badges,
.badges-only {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    display: flex !important;
    flex-direction: column;
    gap: var(--space-xs);
    z-index: 25;
    padding: 0;
}


/* Ensure badges always show on company cards */
.company-card {
    position: relative;
}

.company-card .badges,
.company-card .badges-only,
.latest-entry-card .badges,
.latest-entry-card .badges-only {
    display: flex !important;
}


.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.badge-featured {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-top {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-shared {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Opening Hours */
.opening-hours {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.8rem 0;
    color: #667eea;
    font-weight: 500;
    font-size: 0.9rem;
}

.opening-hours i {
    color: #667eea;
}

/* Amenities */
.amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1rem 0;
}

.amenity {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    background: #e9f4ff;
    color: #1e40af;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #bfdbfe;
}

.amenity i {
    font-size: 0.8rem;
    color: #1e40af;
}

.company-info {
    padding: 1.5rem;
}

.company-info h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.category {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    color: #6c757d;
}

.contact-info i {
    margin-right: 0.5rem;
    width: 16px;
    color: #667eea;
}

.description {
    margin: 1rem 0;
    color: #555;
    line-height: 1.6;
}

.tags {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Social links for cards - circular icons only */
.company-card .social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.company-card .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.company-card .social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* No companies */
.no-companies {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.no-companies i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

/* Forms */
.registration-form,
.login-form {
    max-width: 800px;
    margin: 0 auto;
}

.registration-form h2,
.login-form h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.registration-form p {
    text-align: center;
    margin-bottom: 2rem;
    color: #6c757d;
}

.company-form,
.admin-login-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Login */
.login-card {
    max-width: 400px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.login-info {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.alert i {
    margin-right: 0.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Admin */
.admin-stats {
    margin-bottom: 3rem;
}

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

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #6c757d;
    font-weight: 600;
}

.admin-companies-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-company-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.company-details p {
    margin-bottom: 0.5rem;
}

.company-description {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.company-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.admin-table {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.admin-table th {
    background: #667eea;
    color: white;
    font-weight: 600;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

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

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #ecf0f1 !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db !important;
    text-decoration: underline;
}

/* User Dashboard */
.user-info {
    margin-bottom: 2rem;
}

.user-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.user-card h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.user-details p {
    margin-bottom: 0.8rem;
    color: #555;
}

.user-details strong {
    color: #2c3e50;
    display: inline-block;
    width: 150px;
}

.user-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.user-stats {
    margin-bottom: 3rem;
}

.user-stats h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin: 0;
    color: #2c3e50;
}

.user-companies-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.user-company-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.user-company-card .company-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.user-company-card h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.company-category {
    color: #667eea;
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
}

.company-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.status {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.status-approved {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.company-details {
    margin: 1rem 0;
}

.company-details p {
    margin-bottom: 0.5rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.company-details i {
    color: #667eea;
    width: 16px;
}

.company-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* User forms */
.user-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.user-form h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

/* Breadcrumbs */
.breadcrumbs {
    margin: 1rem 0 2rem 0;
    padding: 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: #667eea;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.breadcrumb-item:last-child {
    color: #2c3e50;
    font-weight: 600;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #cbd5e0;
    font-size: 0.8rem;
}

/* SEO enhancements */
.no-companies {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.search-info {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    color: #1565c0;
}

.companies-header {
    margin-bottom: 2rem;
}

.companies-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.companies-header .count {
    background: #667eea;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Latest Entries */
.latest-entries {
    margin-bottom: var(--space-2xl);
}

.latest-entries h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
}

.latest-entries h2 i {
    color: var(--primary-color);
}

.latest-entries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.latest-entry-card {
    background: var(--background-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.latest-entry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.entry-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.entry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-entry-card:hover .entry-image img {
    transform: scale(1.05);
}


.entry-info {
    padding: 1.5rem;
}

.entry-info h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.entry-category {
    color: #3498db;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 0 0.8rem 0;
}

.entry-excerpt {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
}

.company-excerpt {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0.5rem 0 1rem 0;
    padding: 0.75rem;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 4px;
    font-style: normal;
    font-weight: 500;
}

.entry-location {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.entry-location i {
    color: #3498db;
}

.view-all-link {
    text-align: center;
}

/* Contact Form */
.contact-form-section {
    margin-top: 3rem;
}

.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-container h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-form-container h2 i {
    color: #3498db;
}

/* Page Content */
.page-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.page-content h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.page-content h2 {
    color: #34495e;
    margin: 1.5rem 0 1rem 0;
}

.page-content h3 {
    color: #34495e;
    margin: 1rem 0 0.5rem 0;
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.page-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content .text-success {
    color: #27ae60;
}

/* Flat Design Updates */
.company-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.company-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.search-input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.search-btn {
    background: #3498db;
    border-radius: 0 8px 8px 0;
}

.search-btn:hover {
    background: #2980b9;
}

.category-btn {
    border: 2px solid #3498db;
    color: #3498db;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: #3498db;
    color: white;
}

.stat-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-company-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.no-companies {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
    position: relative;
    padding-left: 2rem;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #eee;
    border: 2px solid #3498db;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-label:hover input~.checkmark {
    background-color: #f0f8ff;
}

.checkbox-label input:checked~.checkmark {
    background-color: #3498db;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked~.checkmark:after {
    display: block;
}

.checkbox-label i {
    margin-left: 0.5rem;
    color: #3498db;
}

/* Admin Categories Styles */
.category-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.categories-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.no-categories {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #7f8c8d;
}

.no-categories i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.badge {
    background: #3498db;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-disabled {
    background: #bdc3c7 !important;
    color: #7f8c8d !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.btn-disabled:hover {
    background: #bdc3c7 !important;
    transform: none !important;
}

/* Admin Pages Styles */
.page-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.pages-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.no-pages {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #7f8c8d;
}

.no-pages i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.status-published {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-draft {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 1rem;
    }

    .logo-section {
        flex: 1;
    }

    header nav {
        justify-content: center;
    }

    .category-filter {
        flex-direction: column;
        align-items: center;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .company-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

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

    .company-actions {
        flex-direction: column;
    }

    .admin-table {
        font-size: 0.9rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .company-info {
        padding: 1rem;
    }

    .company-form,
    .admin-login-form {
        padding: 1.5rem;
    }
}

/* Individual Company Profile Styles */
.breadcrumb {
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

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

.breadcrumb span {
    margin: 0 0.5rem;
}

.company-profile {
    max-width: 1200px;
    margin: 0 auto;
}

.company-header {
    margin-bottom: var(--space-lg);
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

.company-hero-image {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.company-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-title h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.company-category {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.company-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.company-main {
    background: var(--background);
    border-radius: var(--radius);
    padding: var(--space-lg);
    border: 1px solid var(--border-color);
}

.company-description h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-top: 0.5rem;
    margin-bottom: var(--space-md);
}

.description-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-top: 0;
}

.description-content>*:first-child {
    margin-top: 0;
}

.company-tags-section {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.company-tags-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.company-sidebar {
    position: sticky;
    top: var(--space-md);
}

.contact-card {
    background: var(--background);
    border-radius: var(--radius);
    padding: var(--space-lg);
    border: 1px solid var(--border-color);
    margin-bottom: var(--space-md);
}

.contact-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: var(--primary);
    margin-top: 2px;
    width: 20px;
    flex-shrink: 0;
}

.contact-item strong {
    color: var(--text-primary);
}

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

.contact-item a:hover {
    text-decoration: underline;
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.amenities-list .amenity {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--light-bg);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: calc(var(--radius) / 2);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.social-link:hover {
    text-decoration: underline;
}

.social-link i {
    width: 18px;
    text-align: center;
}

.back-to-companies .btn {
    width: 100%;
    text-align: center;
}

/* Company not found styles */
.company-not-found {
    text-align: center;
    padding: var(--space-xl) 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content i {
    font-size: 4rem;
    color: var(--danger);
    margin-bottom: var(--space-md);
}

.error-content h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.error-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.error-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

/* Mobile responsiveness for company profile */
@media (max-width: 768px) {
    .company-content {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .company-hero-image {
        height: 200px;
        border-radius: var(--radius-md);
    }

    .company-title h1 {
        font-size: 2rem;
    }

    .company-sidebar {
        position: static;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .error-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Címke stílusok */
.tag-cloud-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--background-secondary);
    border-radius: var(--radius);
}

.tag-cloud-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.tag-item:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.tag-count {
    font-size: 0.85em;
    opacity: 0.8;
}

/* Admin tags grid layout */
.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* Admin tag items styling */
.admin-tags-list .tag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.admin-tags-list .tag-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-tags-list .tag-item.active {
    border-left: 4px solid var(--success-color);
}

.admin-tags-list .tag-item.inactive {
    border-left: 4px solid var(--muted-color);
    opacity: 0.8;
}

.tag-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text-color);
}

.tag-status {
    font-size: 0.85rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
}

.admin-tags-list .tag-item.active .tag-status {
    background: var(--success-color);
    color: white;
}

.admin-tags-list .tag-item.inactive .tag-status {
    background: var(--muted-color);
    color: white;
}

.tag-actions {
    display: flex;
    gap: 0.5rem;
}

/* Quill editor content formatting */
.quill-content {
    line-height: 1.6;
    word-wrap: break-word;
}

.quill-content p {
    margin: 0 0 1rem 0;
    text-align: left;
    white-space: normal;
}

/* Quill editor paragraph spacing */
.ql-editor p {
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
}

.ql-editor p:not(:last-child) {
    margin-bottom: 1.5rem;
}

.quill-content br {
    display: block;
    margin: 0.5em 0;
    content: "";
}

/* Company sharing styles */
.company-sharing {
    margin-top: 2rem;
}

.shared-users-list {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--background-secondary);
    border-radius: var(--radius);
}

.shared-users-list h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.shared-user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.shared-user-item:last-child {
    margin-bottom: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.user-info i {
    color: var(--primary-color);
}

.share-form {
    padding: 1.5rem;
    background: var(--background-secondary);
    border-radius: var(--radius);
    border: 2px dashed var(--border-color);
}

.share-form .form-row {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.share-form .form-group {
    flex: 1;
}

@media (max-width: 768px) {
    .shared-user-item {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .share-form .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .share-form .form-actions {
        margin-top: 0.5rem;
    }
}

.quill-content h1,
.quill-content h2,
.quill-content h3,
.quill-content h4 {
    margin: 1.5rem 0 1rem 0;
    font-weight: bold;
    line-height: 1.3;
}

.quill-content h1 {
    font-size: 2rem;
}

.quill-content h2 {
    font-size: 1.75rem;
}

.quill-content h3 {
    font-size: 1.5rem;
}

.quill-content h4 {
    font-size: 1.25rem;
}

.quill-content ul,
.quill-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.quill-content li {
    margin: 0.5rem 0;
}

.quill-content strong {
    font-weight: bold;
}

.quill-content em {
    font-style: italic;
}

.quill-content br {
    line-height: 1.6;
}

/* Admin status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.featured {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #8b5a00;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.status-badge.normal {
    background: var(--light-bg);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.status-badge i {
    font-size: 0.75rem;
}

/* Cég dobozokban megjelenő címkék */
.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.entry-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--background-tertiary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.entry-tag-more {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--text-muted);
    color: white;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

/* Címke választó regisztrációban */
.tags-selection {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    background: var(--background-primary);
}

.tag-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--background-secondary);
}

.tag-category h4 {
    margin: 0 0 0.75rem 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.tag-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-checkbox {
    display: inline-flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

.tag-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
}

.tag-label {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.tag-checkbox input[type="checkbox"]:checked+.tag-label {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.selected-tags {
    margin-top: 1rem;
    padding: 1rem;
    border-top: 1px solid var(--border-light);
}

.selected-tag {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    margin: 0.2rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

/* Admin Company Editing Styles */
.admin-breadcrumb {
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.admin-breadcrumb a:hover {
    text-decoration: underline;
}

.company-edit-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-card {
    background: var(--background);
    border-radius: var(--radius);
    padding: var(--space-lg);
    border: 1px solid var(--border-color);
}

.form-card h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
}

.form-sections {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-section {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: var(--space-md);
}

.form-section h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.admin-form .form-group {
    display: flex;
    flex-direction: column;
}

.admin-form .form-group.checkboxes {
    flex-direction: row;
    align-items: center;
}

.admin-form .form-row.checkboxes {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.admin-form .form-group.checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0;
}

.admin-form label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.admin-form textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
    margin-top: var(--space-lg);
}

/* Table actions */
.table-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.table-actions .btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
}

/* Admin form responsive */
@media (max-width: 768px) {
    .company-edit-form {
        max-width: 100%;
    }

    .form-card {
        padding: var(--space-md);
    }

    .admin-form .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .form-actions {
        flex-direction: column;
    }

    .table-actions {
        flex-direction: column;
        gap: 0.25rem;
    }

    .table-actions .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
}

/* Settings page styles */
.settings-overview {
    margin-top: var(--space-lg);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.setting-item {
    padding: var(--space-sm);
    background: var(--light-bg);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.setting-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: var(--space-xs);
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.admin-form small {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}