/* FORYTECH DESIGN - FORYHARDWARE */
:root {
    --primary-color: #00f2ff;
    --primary-dim: rgba(0, 242, 255, 0.3);
    --primary-glow: rgba(0, 242, 255, 0.5);
    --bg-color: #000a14;
    --glass-bg: rgba(0, 15, 30, 0.7);
    --card-bg: rgba(0, 20, 40, 0.6);
    --text-color: #e0faff;
    --text-dim: #80b0c0;
    --font-main: 'Orbitron', sans-serif;
    --font-secondary: 'Rajdhani', sans-serif;
}

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

body {
    background: transparent;
    color: var(--text-color);
    font-family: var(--font-secondary);
    font-size: 14px;
    overflow: hidden;
    user-select: none;
}

.app-container {
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0, 242, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 100, 200, 0.05) 0%, transparent 50%);
    border: 1px solid var(--primary-dim);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Barra de título */
.title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: linear-gradient(90deg, rgba(0, 242, 255, 0.1) 0%, transparent 50%, rgba(0, 242, 255, 0.05) 100%);
    border-bottom: 1px solid var(--primary-dim);
    -webkit-app-region: drag;
}

.title-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-logo {
    font-size: 1.5rem;
}

.title-bar h1 {
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px var(--primary-color);
}

.title-bar h1 .highlight {
    color: var(--primary-color);
}

.title-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-main);
    color: var(--primary-color);
    font-size: 0.9rem;
}

.title-clock #live-date {
    font-size: 0.7rem;
    opacity: 0.7;
}

.window-controls {
    display: flex;
    gap: 8px;
    -webkit-app-region: no-drag;
}

.ctrl-btn {
    width: 30px;
    height: 30px;
    background: transparent;
    border: 1px solid var(--primary-dim);
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
}

.ctrl-btn:hover {
    background: var(--primary-dim);
}

.ctrl-btn.close:hover {
    background: rgba(255, 50, 50, 0.8);
    border-color: #ff3333;
    color: white;
}

/* Contenido principal */
main {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    position: relative;
}

/* Loading */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 10, 20, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-overlay.hidden {
    display: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-dim);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-overlay p {
    margin-top: 15px;
    font-family: var(--font-main);
    color: var(--primary-color);
    letter-spacing: 2px;
}

/* Grid de tarjetas */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--primary-dim);
    border-left: 3px solid var(--primary-color);
    padding: 15px;
    transition: 0.3s;
}

.info-card:hover {
    background: rgba(0, 242, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

.info-card.wide {
    grid-column: span 2;
}

.card-title {
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--primary-dim);
    letter-spacing: 1px;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-content p {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dotted rgba(0, 242, 255, 0.1);
}

.card-content .label {
    color: var(--text-dim);
    font-weight: 500;
}

.card-content .value {
    color: #fff;
    font-weight: 600;
    text-align: right;
}

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

main::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

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

/* Barra de acciones */
.action-bar {
    display: flex;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(0, 10, 20, 0.8);
    border-top: 1px solid var(--primary-dim);
}

.fory-btn {
    flex: 1;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px;
    font-family: var(--font-main);
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 1px;
}

.fory-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}