* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(135deg, #0a0a1a, #1a1a2e);
    color: #e0e0e0;
    overflow-x: hidden;
    animation: fadeIn 0.5s ease;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a2e, #16213e);
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 10px 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    transition: all 0.3s ease;
}

.sidebar-menu {
    flex-grow: 1;
    margin-top: 20px;
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu li {
    margin: 10px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #4CAF50;
}

.sidebar-wallet {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-icon {
    font-size: 1.2em;
}

.header-balance {
    font-weight: bold;
    transition: all 0.3s ease;
}

.sidebar-actions {
    padding: 10px 20px;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s ease;
}

.main-content.no-sidebar {
    margin-left: 0;
}

/* Dashboard Cards */
.dashboard-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.dashboard-card h3 {
    margin-bottom: 10px;
    color: #fff;
}

.security-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(#4CAF50 0deg, #4CAF50 70.21deg, #FFC107 70.21deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
}

.score-circle::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: #1a1a2e;
    border-radius: 50%;
}

.category-scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-score {
    text-align: center;
    padding: 10px;
}

.category-bar {
    background-color: rgba(255, 255, 255, 0.1);
    height: 20px;
    border-radius: 10px;
    margin: 5px 0;
    overflow: hidden;
}

.category-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #FFC107);
    width: 80.21%;
    transition: width 0.3s ease;
}

.audit-history {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.audit-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.audit-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chart-container {
    position: relative;
    height: 200px;
    margin: 20px 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.action-buttons button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-buttons button:hover {
    background-color: #388E3C;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #1a1a2e;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    color: #e0e0e0;
    animation: slideIn 0.3s ease;
}

.modal-close {
    float: right;
    font-size: 1.5em;
    cursor: pointer;
}

.modal label {
    display: block;
    margin: 10px 0 5px;
}

.modal input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #444;
    color: #fff;
    transition: all 0.3s ease;
}

.modal button {
    background-color: #007bff;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal button:hover {
    background-color: #0056b3;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

th, td {
    border: 1px solid #555;
    padding: 8px;
    text-align: left;
    transition: all 0.3s ease;
}

th {
    background-color: #444;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1001;
        background: #4CAF50;
        border: none;
        padding: 10px;
        border-radius: 5px;
        color: #fff;
        cursor: pointer;
    }
}

.noti {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: none;
    animation: slideIn 0.5s ease, fadeOut 0.5s ease 2s forwards;
}

.noti.error {
    background-color: #dc3545;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); }
    to { transform: translateY(0); }
}

@keyframes fadeOut {
    to { opacity: 0; }
}