
/* HotMic Admin Dashboard CSS */
/* Dark theme, utilitarian design */

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #2C3E50;
    color: #ECF0F1;
    line-height: 1.6;
    font-size: 14px;
}

/* Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #34495E;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid #2C3E50;
    margin-bottom: 20px;
}

.sidebar-header h2 {
    color: #2ECC71;
    font-size: 18px;
    font-weight: 600;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: block;
    padding: 12px 20px;
    color: #ECF0F1;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: #2C3E50;
    color: #2ECC71;
    border-left-color: #2ECC71;
}

.sidebar-nav a i {
    margin-right: 10px;
    width: 16px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
}

/* Header */
.page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #34495E;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    color: #ECF0F1;
    margin-bottom: 5px;
}

.page-subtitle {
    color: #95A5A6;
    font-size: 14px;
}

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

.stat-card {
    background-color: #34495E;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s, transform 0.3s;
}

.stat-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.stat-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    background-color: #2ECC71;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 18px;
}

.stat-card-title {
    font-size: 14px;
    color: #95A5A6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.stat-card-change {
    font-size: 12px;
    color: #95A5A6;
}

/* Tables */
.table-container {
    background-color: #34495E;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table-header {
    padding: 20px;
    border-bottom: 1px solid #2C3E50;
    display: flex;
    justify-content: between;
    align-items: center;
}

.table-title {
    font-size: 18px;
    font-weight: 600;
    color: #ECF0F1;
}

.table-actions {
    display: flex;
    gap: 10px;
}

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

.data-table th,
.data-table td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid #2C3E50;
}

.data-table th {
    background-color: #2C3E50;
    color: #95A5A6;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    color: #ECF0F1;
}

.data-table tr:hover {
    background-color: #2C3E50;
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-online {
    background-color: #2ECC71;
}

.status-offline {
    background-color: #95A5A6;
}

.status-error {
    background-color: #E74C3C;
}

.status-recording {
    background-color: #E67E22;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #2ECC71;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: #27AE60;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 11px;
}

.btn-danger {
    background-color: #E74C3C;
}

.btn-danger:hover {
    background-color: #C0392B;
}

.btn-secondary {
    background-color: #95A5A6;
}

.btn-secondary:hover {
    background-color: #7F8C8D;
}

.btn-icon {
    padding: 6px 8px;
    font-size: 14px;
}

/* Forms */
.form-container {
    background-color: #34495E;
    padding: 30px;
    border-radius: 5px;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.form-label {
    display: block;
    margin-bottom: 5px;
    color: #ECF0F1;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 12px;
    background-color: #2C3E50;
    border: 1px solid #34495E;
    border-radius: 3px;
    color: #ECF0F1;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #2ECC71;
}

.form-input::placeholder {
    color: #95A5A6;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 3px;
    font-size: 12px;
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ECC71;
    color: #2ECC71;
}

.alert-error {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid #E74C3C;
    color: #E74C3C;
}

.alert-info {
    background-color: rgba(52, 152, 219, 0.1);
    border: 1px solid #3498DB;
    color: #3498DB;
}

/* Login page */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
}

.login-form {
    background-color: #34495E;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-title {
    font-size: 24px;
    font-weight: bold;
    color: #2ECC71;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #95A5A6;
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 5px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    background-color: #34495E;
    color: #ECF0F1;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: #2ECC71;
}

.pagination .current {
    background-color: #2ECC71;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        overflow-x: auto;
    }
}

/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: #95A5A6; }
.text-success { color: #2ECC71; }
.text-danger { color: #E74C3C; }
.text-warning { color: #E67E22; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.hidden { display: none; }

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #95A5A6;
    border-radius: 50%;
    border-top-color: #2ECC71;
    animation: spin 1s linear infinite;
}

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

/* Recent recordings list */
.recordings-list {
    list-style: none;
}

.recordings-list li {
    padding: 10px 0;
    border-bottom: 1px solid #2C3E50;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recordings-list li:last-child {
    border-bottom: none;
}

.recording-info {
    flex: 1;
}

.recording-title {
    color: #ECF0F1;
    font-weight: 500;
    margin-bottom: 2px;
}

.recording-meta {
    color: #95A5A6;
    font-size: 11px;
}

.recording-actions {
    display: flex;
    gap: 5px;
}

/* ==================== FILTER & BATCH STYLES ==================== */

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    min-width: 300px;
    max-width: 450px;
    padding: 12px 16px;
    border-radius: 5px;
    animation: slideInRight 0.3s ease-out;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
}

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

/* Monospace font for device IDs */
.monospace {
    font-family: 'Roboto Mono', 'Consolas', monospace;
}

/* Selected row highlight */
tr.selected {
    background-color: rgba(46, 204, 113, 0.1) !important;
}

/* Smooth transitions */
.smooth-transition {
    transition: all 0.2s ease-out;
}

/* Button states */
.btn.recording {
    background-color: #E74C3C !important;
}

.btn.recording:hover {
    background-color: #C0392B !important;
}

.btn-warning {
    background-color: #E67E22;
}

.btn-warning:hover {
    background-color: #D35400;
}

/* Checkbox styling */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2ECC71;
    cursor: pointer;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #2C3E50;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #34495E;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3d566e;
}

/* Connection indicator animation */
.connection-pulse {
    animation: connectionPulse 2s infinite;
}

@keyframes connectionPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
}
