/* No Man's Sky Trading Station - Space Trade Theme */

:root {
    /* Space Trade Color Palette */
    --space-dark: #0a0e27;
    --space-darker: #050815;
    --space-blue: #1a3a5c;
    --space-cyan: #00d4ff;
    --space-cyan-light: #4de8ff;
    --space-purple: #6c5ce7;
    --space-purple-light: #a29bfe;
    --space-green: #00ff88;
    --space-orange: #ff6b6b;
    --space-yellow: #ffd93d;
    
    /* UI Colors */
    --primary-color: var(--space-cyan);
    --secondary-color: var(--space-blue);
    --success-color: var(--space-green);
    --danger-color: var(--space-orange);
    --warning-color: var(--space-yellow);
    
    /* Backgrounds */
    --bg-color: var(--space-dark);
    --bg-gradient: linear-gradient(135deg, #0a0e27 0%, #1a3a5c 50%, #0a0e27 100%);
    --card-bg: rgba(26, 58, 92, 0.4);
    --card-bg-hover: rgba(26, 58, 92, 0.6);
    --card-border: rgba(0, 212, 255, 0.3);
    
    /* Text */
    --text-color: #e0e8f0;
    --text-muted: #8b9dc3;
    --text-light: #ffffff;
    
    /* Borders & Shadows */
    --border-color: rgba(0, 212, 255, 0.2);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.7);
    --glow: 0 0 20px rgba(0, 212, 255, 0.5);
    --glow-strong: 0 0 30px rgba(0, 212, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Stars */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(0, 212, 255, 0.2), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(0, 212, 255, 0.3), transparent),
        radial-gradient(2px 2px at 90% 40%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 33% 60%, rgba(0, 212, 255, 0.2), transparent),
        radial-gradient(1px 1px at 55% 80%, rgba(255, 255, 255, 0.3), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: starfield 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes starfield {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Navigation */
.navbar {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-brand a {
    color: var(--space-cyan);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    transition: all 0.3s;
}

.nav-brand a:hover {
    color: var(--space-cyan-light);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--space-cyan);
    border-radius: 3px;
    transition: all 0.3s;
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    order: 3;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
    font-weight: 500;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--space-cyan);
    transition: width 0.3s;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.nav-menu a:hover {
    color: var(--space-cyan-light);
    background: rgba(0, 212, 255, 0.1);
}

.nav-menu a:hover::before {
    width: 80%;
}

.nav-user {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-user span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.nav-user a {
    color: var(--space-cyan);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-user a:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--space-cyan);
    box-shadow: var(--glow);
}

/* Main Content */
main {
    flex: 1;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

/* Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--space-cyan), var(--space-purple));
    opacity: 0.6;
}

.card:hover {
    background: var(--card-bg-hover);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: var(--shadow-lg), var(--glow);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    letter-spacing: 0.5px;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--space-cyan);
    background: rgba(10, 14, 39, 0.8);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2), var(--glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300d4ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--space-cyan), var(--space-blue));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5), var(--glow);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--space-green), #00cc6a);
    color: var(--space-dark);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 25px rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--space-orange), #ff5252);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.5);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, var(--space-yellow), #ffb347);
    color: var(--space-dark);
    box-shadow: 0 4px 15px rgba(255, 217, 61, 0.3);
}

.btn-warning:hover {
    box-shadow: 0 6px 25px rgba(255, 217, 61, 0.5);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(10, 14, 39, 0.4);
}

table tbody tr:nth-child(even) {
    background: rgba(10, 14, 39, 0.5);
}

thead {
    background: linear-gradient(135deg, var(--space-blue), var(--space-darker));
    color: var(--text-light);
    position: sticky;
    top: 0;
    z-index: 10;
}

th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--space-cyan);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

tbody tr {
    transition: all 0.3s;
}

tbody tr {
    background: rgba(10, 14, 39, 0.3);
}

tbody tr:hover {
    background: rgba(0, 212, 255, 0.15);
    box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.1);
}

tbody td {
    color: var(--text-color);
}

tbody td strong {
    color: var(--text-light);
    font-weight: 600;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Alerts */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.alert-info {
    background: rgba(0, 212, 255, 0.15);
    color: var(--space-cyan-light);
    border-left-color: var(--space-cyan);
}

.alert-success {
    background: rgba(0, 255, 136, 0.15);
    color: var(--space-green);
    border-left-color: var(--space-green);
}

.alert-danger {
    background: rgba(255, 107, 107, 0.15);
    color: var(--space-orange);
    border-left-color: var(--space-orange);
}

.alert-warning {
    background: rgba(255, 217, 61, 0.15);
    color: var(--space-yellow);
    border-left-color: var(--space-yellow);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--space-cyan), var(--space-purple));
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--glow);
    border-color: rgba(0, 212, 255, 0.5);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--space-cyan), var(--space-purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 400px;
    margin: 2rem 0;
    background: rgba(10, 14, 39, 0.3);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

/* Actions */
.actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    min-width: 200px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.dropdown-item {
    display: block;
    padding: 0.875rem 1.25rem;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--space-cyan-light);
    padding-left: 1.5rem;
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* Images */
.item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.item-image:hover {
    transform: scale(1.1);
    box-shadow: var(--glow);
}

.item-image-large {
    max-width: 200px;
    max-height: 200px;
    border: 2px solid var(--card-border);
    border-radius: 8px;
    padding: 0.5rem;
    background: rgba(10, 14, 39, 0.6);
    box-shadow: var(--shadow);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: nowrap;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        margin-left: auto;
        order: 2;
    }
    
    .nav-brand {
        order: 1;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 0;
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
        border-top: 1px solid var(--card-border);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        left: 0 !important;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        display: block;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .nav-user {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
        border-top: 2px solid var(--border-color);
        margin-top: 1rem;
    }
    
    .nav-user span {
        display: block;
        width: 100%;
    }
    
    .nav-user a {
        width: 100%;
        text-align: center;
        display: block;
    }
    
    .card {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .actions .btn {
        width: 100%;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .chart-container {
        height: 300px;
        padding: 0.5rem;
    }
    
    .company-header-card {
        padding: 1.5rem;
    }
    
    .company-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .company-logo,
    .company-icon-large {
        width: 70px;
        height: 70px;
    }
    
    .company-icon-large {
        font-size: 3rem;
    }
    
    .company-header-text {
        width: 100%;
        max-width: 100%;
    }
    
    .company-name {
        font-size: 1.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        width: 100%;
    }
    
    .company-description {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .nav-brand a {
        font-size: 1.25rem;
    }
    
    .card {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .empty-state-icon {
        font-size: 4rem;
    }
    
    table {
        font-size: 0.75rem;
    }
    
    th, td {
        padding: 0.5rem 0.25rem;
    }
    
    .company-header-card {
        padding: 1rem;
    }
    
    .company-header-content {
        gap: 1rem;
    }
    
    .company-logo,
    .company-icon-large {
        width: 60px;
        height: 60px;
    }
    
    .company-icon-large {
        font-size: 2.5rem;
    }
    
    .company-header-text {
        width: 100%;
        max-width: 100%;
    }
    
    .company-name {
        font-size: 1.5rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        width: 100%;
    }
    
    .company-description {
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--space-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--space-blue);
    border-radius: 5px;
    border: 2px solid var(--space-darker);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--space-cyan);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Company Header */
.company-header-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.company-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--space-cyan), var(--space-purple));
    opacity: 0.6;
}

.company-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.company-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid var(--card-border);
    background: rgba(10, 14, 39, 0.6);
    padding: 0.75rem;
    box-shadow: var(--shadow);
}

.company-icon-large {
    font-size: 3.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 2px solid var(--card-border);
    background: rgba(10, 14, 39, 0.6);
    box-shadow: var(--shadow);
}

.company-header-text {
    flex: 1;
}

.company-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, var(--space-cyan), var(--space-purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
    max-width: 100%;
}

.company-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

/* Icon Selector */
.icon-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(10, 14, 39, 0.4);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    max-height: 300px;
    overflow-y: auto;
}

.icon-option {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: rgba(10, 14, 39, 0.6);
    transition: all 0.3s;
}

.icon-option:hover {
    border-color: var(--space-cyan);
    background: rgba(0, 212, 255, 0.1);
    transform: scale(1.1);
}

.icon-option.selected {
    border-color: var(--space-cyan);
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.icon-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.icon-display {
    font-size: 2rem;
    display: block;
}

/* Permissions Container */
.permissions-container {
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.5rem;
    background: rgba(10, 14, 39, 0.6);
    backdrop-filter: blur(10px);
}

.permission-area {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.permission-area:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.permission-area-title {
    display: block;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.permission-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 6px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.permission-checkbox-label:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--card-border);
}

.permission-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: rgba(10, 14, 39, 0.6);
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
}

.permission-checkbox:checked {
    background: var(--space-cyan);
    border-color: var(--space-cyan);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.permission-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--space-dark);
    font-weight: bold;
    font-size: 14px;
}

.permission-checkbox-text {
    color: var(--text-color);
    font-weight: 500;
    user-select: none;
}

.permission-checkbox-label:hover .permission-checkbox-text {
    color: var(--text-light);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s ease-in-out infinite;
}
