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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #121212;
    color: #E0E0E0;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Login Page */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: #1E1E1E;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.login-box h1 {
    color: #FF5722;
    margin-bottom: 10px;
    font-size: 28px;
    text-align: center;
}

.login-box p {
    text-align: center;
    color: #999;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #E0E0E0;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #121212;
    border: 2px solid #333;
    border-radius: 8px;
    color: #E0E0E0;
    font-size: 14px;
    transition: border-color 0.3s;
}

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

.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FF5722, #FF9800);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-inline {
    width: auto;
    padding: 10px 16px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.demo-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 152, 0, 0.1);
    border-left: 3px solid #FF9800;
    border-radius: 4px;
    font-size: 12px;
}

.demo-info strong {
    color: #FF9800;
}

.error-message {
    background: rgba(244, 67, 54, 0.2);
    border-left: 3px solid #f44336;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    color: #ff6b6b;
}

/* Dashboard Layout */
.dashboard {
    display: none;
}

.dashboard.active {
    display: block;
}

.header {
    background: #1E1E1E;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #FF5722, #FF9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-badge {
    padding: 6px 12px;
    background: rgba(255, 87, 34, 0.2);
    border-radius: 20px;
    font-size: 13px;
    color: #FF5722;
    font-weight: 600;
}

.btn-logout {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #FF5722;
    border-radius: 8px;
    color: #FF5722;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-logout:hover {
    background: #FF5722;
    color: white;
}

.navigation {
    background: #1E1E1E;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #333;
    border-radius: 8px;
    color: #E0E0E0;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-btn:hover {
    border-color: #FF5722;
    color: #FF5722;
}

.nav-btn.active {
    background: linear-gradient(135deg, #FF5722, #FF9800);
    border-color: transparent;
    color: white;
}

.content-section {
    display: none;
}

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

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: #1E1E1E;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.card:hover {
    border-color: #FF5722;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 87, 34, 0.2);
}

.card-title {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-value {
    font-size: 32px;
    font-weight: bold;
    color: #FF5722;
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 12px;
    color: #666;
}

/* Tables */
.table-container {
    background: #1E1E1E;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    overflow-x: auto;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.table-title {
    font-size: 20px;
    font-weight: 600;
    color: #E0E0E0;
}

.btn-add {
    padding: 10px 20px;
    background: linear-gradient(135deg, #FF5722, #FF9800);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #121212;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #FF9800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

td {
    padding: 15px;
    border-top: 1px solid #333;
    color: #E0E0E0;
}

tr:hover {
    background: rgba(255, 87, 34, 0.05);
}

.btn-action {
    padding: 6px 12px;
    margin: 0 5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-edit {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.btn-edit:hover {
    background: #FF9800;
    color: white;
}

.btn-delete {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.btn-delete:hover {
    background: #f44336;
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1E1E1E;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-title {
    font-size: 22px;
    font-weight: 600;
    color: #FF5722;
}

.btn-close {
    background: transparent;
    border: none;
    color: #999;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.btn-close:hover {
    color: #FF5722;
}

.modal-body {
    margin-bottom: 25px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #666;
    border-radius: 8px;
    color: #E0E0E0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: #999;
    color: #999;
}

.btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, #FF5722, #FF9800);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

/* Loader Section */
.loader-widget {
    background: #1E1E1E;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #333;
    border-top-color: #FF5722;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-size: 18px;
    color: #999;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background: #1E1E1E;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.product-card:hover {
    border-color: #FF9800;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 152, 0, 0.2);
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: #FF9800;
    margin-bottom: 10px;
}

.product-info {
    font-size: 14px;
    color: #999;
}

/* Audit Logs */
.log-entry {
    background: #1E1E1E;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #FF5722;
}

.log-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.log-user {
    font-weight: 600;
    color: #FF9800;
}

.log-time {
    color: #666;
    font-size: 12px;
}

.log-action {
    color: #E0E0E0;
}

/* Settings */
.settings-section {
    background: #1E1E1E;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.settings-title {
    font-size: 18px;
    font-weight: 600;
    color: #FF5722;
    margin-bottom: 20px;
}

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

.setting-item:last-child {
    border-bottom: none;
}

.setting-label {
    font-weight: 500;
    color: #E0E0E0;
}

.setting-value {
    color: #999;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 2000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
}

.notification.error {
    background: linear-gradient(135deg, #f44336, #e91e63);
}

.notification.info {
    background: linear-gradient(135deg, #2196F3, #03A9F4);
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .table-container {
        padding: 15px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 10px;
    }

    .navigation {
        flex-direction: column;
    }

    .nav-btn {
        width: 100%;
    }

    .modal-content {
        padding: 20px;
    }
}

.hidden {
    display: none !important;
}
