/*
 * TinyBlue.dev - Admin Panel Styles
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    color: #ffffff;
    min-height: 100vh;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
}

.header h1 {
    color: #00d4ff;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 20px #00d4ff;
}

.user-info {
    opacity: 0.8;
    font-size: 1.1rem;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #00ff00;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

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

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.panel:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
}

.panel h2 {
    color: #00d4ff;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* System Info Table */
.system-info table {
    width: 100%;
    border-collapse: collapse;
}

.system-info th,
.system-info td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.system-info th {
    color: #00d4ff;
    font-weight: 600;
}

.system-info td {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

/* Service Links */
.service-grid {
    display: grid;
    gap: 15px;
}

.service-category {
    margin-bottom: 20px;
}

.service-category h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.1rem;
    opacity: 0.9;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    padding-bottom: 5px;
}

.service-link {
    display: block;
    padding: 12px 15px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.service-link:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateX(5px);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.action-btn {
    padding: 15px;
    background: linear-gradient(45deg, #00d4ff, #0066ff);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* File Manager */
.file-list {
    margin-top: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    cursor: pointer;
    transition: background 0.2s ease;
}

.file-item:hover {
    background: rgba(0, 212, 255, 0.1);
}

.file-name {
    flex: 1;
    color: #fff;
}

.file-name.directory {
    color: #00d4ff;
}

.file-info {
    color: #888;
    font-size: 0.8rem;
    white-space: nowrap;
    margin-left: 20px;
}

/* Log Viewer */
.log-viewer {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    color: #00ff00;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    opacity: 0.6;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 2rem;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    body {
        padding: 10px;
    }
}

/* Loading States */
.loading {
    text-align: center;
    color: #00d4ff;
    font-style: italic;
}

.error {
    color: #ff4444;
    text-align: center;
    padding: 10px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 5px;
    margin: 10px 0;
}

.success {
    color: #00ff00;
    text-align: center;
    padding: 10px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 5px;
    margin: 10px 0;
}