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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0f;
    min-height: 100vh;
    color: #fff;
}

/* Login Page */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(ellipse at top, #1a0a2e 0%, #0a0a0f 50%, #000 100%);
}

.login-box {
    text-align: center;
    padding: 40px;
    max-width: 450px;
    width: 90%;
}

.logo {
    margin-bottom: 30px;
}

.logo-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.5);
}

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

.logo h1 {
    font-size: 32px;
    background: linear-gradient(90deg, #9333ea, #c026d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 3px;
}

h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

.subtitle {
    color: #9ca3af;
    margin-bottom: 30px;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #374151;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.3);
}

.input-group input::placeholder {
    color: #6b7280;
}

.btn-login {
    padding: 15px 30px;
    background: linear-gradient(135deg, #9333ea, #c026d3);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.4);
}

.links {
    margin-top: 20px;
}

.no-access {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.no-access:hover {
    color: #c026d3;
}

/* Collaboration Section */
.collab-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #374151;
}

.collab-title {
    color: #9333ea;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: lowercase;
    letter-spacing: 2px;
}

.collab-items {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.collab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.collab-item .name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.collab-item .check {
    color: #22c55e;
    font-size: 20px;
    font-weight: bold;
}

/* Dashboard */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid #1f2937;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(90deg, #9333ea, #c026d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon.small {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
}

.logo-icon.small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(147, 51, 234, 0.2);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user span {
    font-size: 14px;
    color: #9ca3af;
}

.avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #9333ea, #c026d3);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.access-info {
    font-size: 18px;
    color: #9ca3af;
    margin-bottom: 20px;
}

.access-type {
    color: #22c55e;
    font-weight: 600;
}

.warning-box {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 10px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.warning-box p {
    color: #eab308;
    font-size: 14px;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    background: rgba(255,255,255,0.03);
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.card:hover {
    border-color: #9333ea;
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(147, 51, 234, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(147, 51, 234, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 15px;
}

.card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #fff;
}

.card p {
    font-size: 12px;
    color: #6b7280;
}

/* Profile Page */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.03);
    border: 1px solid #1f2937;
    border-radius: 20px;
    padding: 40px;
}

.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.profile-avatar-large {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #9333ea;
}

.change-photo {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #9333ea;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
}

.change-photo:hover {
    background: #c026d3;
}

.profile-info {
    margin-bottom: 30px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #1f2937;
}

.info-row:last-child {
    border-bottom: none;
}

.label {
    color: #9ca3af;
    font-size: 14px;
}

.value {
    color: #fff;
    font-weight: 600;
}

.access-badge {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
}

.cargo-badge {
    color: #9333ea;
    background: rgba(147, 51, 234, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
}

.cargo-info {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #1f2937;
}

.cargo-info h3 {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 15px;
}

.cargo-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cargo-tag {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

/* Admin Area */
.admin-container {
    max-width: 900px;
    margin: 0 auto;
}

.admin-container h2 {
    text-align: center;
    margin-bottom: 10px;
}

.admin-subtitle {
    text-align: center;
    color: #9ca3af;
    margin-bottom: 40px;
}

.create-user-form {
    background: rgba(255,255,255,0.03);
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
}

.create-user-form h3 {
    margin-bottom: 20px;
    color: #9333ea;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #9ca3af;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #374151;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #9333ea;
}

.btn-create {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #9333ea, #c026d3);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.4);
}

.users-list {
    background: rgba(255,255,255,0.03);
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 30px;
}

.users-list h3 {
    margin-bottom: 20px;
    color: #9333ea;
}

.users-list table {
    width: 100%;
    border-collapse: collapse;
}

.users-list th,
.users-list td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #1f2937;
}

.users-list th {
    color: #9ca3af;
    font-weight: 600;
}

.btn-delete {
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #ef4444;
    cursor: pointer;
    font-size: 12px;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .collab-items {
        flex-direction: column;
        gap: 20px;
    }
    
    .profile-container {
        padding: 20px;
    }
}