* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: linear-gradient(135deg, #e8f0f2 0%, #f5f5f5 100%);
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: linear-gradient(to right, #17a2b8 0%, #20c997 50%, #d4ed31 100%);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 4px;
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

/* Button Styles */
.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-add {
    background: white;
    color: #333;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-activate {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-activate:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 18px;
    font-weight: bold;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.icon-wrapper {
    position: relative;
    cursor: pointer;
}

.icon {
    width: 28px;
    height: 28px;
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: #ff4757;
    border-radius: 50%;
    border: 2px solid #17a2b8;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-text {
    text-align: right;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.user-role {
    font-size: 14px;
    color: #555;
    margin-top: 2px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Main Content */
.main-content {
    padding: 60px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.table-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    text-align: left;
    padding: 20px 12px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e9ecef;
}

.data-table tbody td {
    padding: 28px 12px;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #f1f3f5;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 30px;
    transition: 0.3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background: linear-gradient(135deg, #7ed956 0%, #a8e063 100%);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Action Buttons */
.action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.view-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
}

.view-btn svg {
    stroke: white;
    fill: none;
}

.view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(23, 162, 184, 0.4);
}

.delete-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.delete-btn svg {
    stroke: white;
    fill: none;
}

.delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header {
        flex-direction: column;
        gap: 20px;
    }

    .header-left,
    .header-right {
        width: 100%;
        justify-content: center;
    }

    .main-content {
        padding: 30px 20px;
    }

    .table-container {
        overflow-x: auto;
        padding: 20px;
    }

    .data-table {
        min-width: 800px;
    }
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 24px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .user-name {
        font-size: 14px;
    }

    .user-role {
        font-size: 12px;
    }

    .data-table thead th,
    .data-table tbody td {
        padding: 16px 12px;
        font-size: 14px;
    }
}