:root {
    --primary: #2c5aa0;
    --secondary: #00d4ff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1f2937;
    --light: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--dark);
}

.dashboard-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.dashboard-header {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInDown 0.8s ease;
}

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

.logo-section h1 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.logo-section p {
    color: #6b7280;
    font-size: 1.1rem;
}

.stats-overview {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    text-align: center;
    min-width: 150px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Table Container */
.table-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease;
    margin-bottom: 25px;
}

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

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--secondary);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
    color: white;
    text-decoration: none;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #0da271);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    color: white;
    text-decoration: none;
}

.action-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Table Styles */
.devices-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.devices-table th {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.devices-table td {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.95rem;
}

.devices-table tr {
    transition: all 0.3s ease;
}

.devices-table tr:hover {
    background-color: rgba(44, 90, 160, 0.05);
    transform: translateY(-2px);
}

.devices-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.status-active {
    background: var(--success);
    color: white;
}

.status-inactive {
    background: var(--warning);
    color: white;
}

.id-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #6b7280;
}

.date-cell {
    color: #6b7280;
    font-size: 0.9rem;
}

.action-cell {
    text-align: center;
}

.action-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.action-btn:hover {
    background: rgba(44, 90, 160, 0.1);
    transform: scale(1.1);
}

.action-btn.delete {
    color: var(--danger);
}

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

.no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #6b7280;
    text-align: center;
}

.no-data i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-data p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

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

    .stats-overview {
        justify-content: center;
    }

    .dashboard-container {
        padding: 10px;
    }

    .devices-table {
        display: block;
        overflow-x: auto;
    }

    .devices-table th,
    .devices-table td {
        padding: 15px 10px;
        font-size: 0.9rem;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-success {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stat-card {
        min-width: 120px;
        padding: 12px 20px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .logo-section h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.3rem;
    }
}