/* ============================================
   SHELL CUSTOM CSS - SVXLink Dashboard
   Autor: SP2ONG
   Data: 2024-12-11
   Theme: Terminal/Console (Matrix Green)
   ============================================ */

/* ===== ANIMACJE ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes spinning {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ===== CONTAINER ===== */
.shell-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
    animation: fadeIn 0.5s ease-in;
}

/* ===== HEADER ===== */
.shell-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #00ff88;
    padding: 15px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    animation: slideDown 0.6s ease-out;
    text-align: center;
    border: 2px solid #00ff88;
}

.shell-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.shell-title .material-icons {
    font-size: 32px;
    animation: blink 2s ease-in-out infinite;
}

.shell-subtitle {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
    font-weight: 400;
    color: #66ffaa;
}

/* ===== TERMINAL SECTION ===== */
.terminal-section {
    background: #1a1a1a;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 2px solid #00ff88;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

.terminal-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #00ff88;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.terminal-dot.red {
    background: #ff5f56;
    box-shadow: 0 0 5px #ff5f56;
}

.terminal-dot.yellow {
    background: #ffbd2e;
    box-shadow: 0 0 5px #ffbd2e;
}

.terminal-dot.green {
    background: #27c93f;
    box-shadow: 0 0 5px #27c93f;
}

.terminal-dot:hover {
    transform: scale(1.2);
}

.terminal-title {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #00ff88;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    font-weight: 600;
}

.terminal-title .material-icons {
    font-size: 18px;
}

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

.terminal-action {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    color: #00ff88;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.terminal-action:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: scale(1.1);
}

.terminal-action .material-icons {
    font-size: 20px;
}

.terminal-content {
    position: relative;
    width: 100%;
    height: 600px;
    background: #000;
}

.terminal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.terminal-footer {
    background: #0a0a0a;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #66ffaa;
    font-size: 13px;
    border-top: 1px solid #00ff88;
}

.terminal-footer .material-icons {
    font-size: 16px;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
    background: #fafabb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-actions h3 {
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #549adf 100%);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-card:hover {
    border-color: #00ff88;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 255, 136, 0.2);
}

.action-button {
    border: 2px solid #dee2e6;
}

.action-card .material-icons {
    font-size: 32px;
    color: #00ff88;
    flex-shrink: 0;
}

.action-card strong {
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
    color: #333;
}

.action-card small {
    display: block;
    font-size: 13px;
    color: #666;
}

/* ===== INFO/WARNING/TIP BOXES ===== */
.info-box,
.warning-box,
.tip-box {
    padding: 10px 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    animation: slideUp 0.6s ease-out;
    line-height: 1.7;
}

.info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 5px solid #2196f3;
    color: #0d47a1;
}

.warning-box {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 5px solid #ff9800;
    color: #232d69;
}

.tip-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 5px solid #4caf50;
    color: #1b5e20;
}

.info-box .material-icons,
.warning-box .material-icons,
.tip-box .material-icons {
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box p,
.warning-box p,
.tip-box p {
    margin: 10px 0 0 0;
}

.warning-box ul,
.tip-box ul {
    margin: 10px 0 0 0;
    padding-left: 25px;
}

.warning-box li,
.tip-box li {
    margin-bottom: 8px;
}

.warning-box code,
.tip-box code {
    background:  #eaeac1;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
}

/* ===== COMMANDS GRID ===== */
.commands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.command-item {
    background: rgba(0, 0, 0, 0.05);
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 3px solid #4caf50;
}

.command-item code {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #1b5e20;
    margin-bottom: 5px;
}

.command-item small {
    display: block;
    font-size: 12px;
    color: #2e7d32;
}

/* ===== COMMANDS LIST ===== */
.commands-list {
    margin-top: 15px;
}

.command-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 3px solid #4caf50;
}

.command-line code {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #1b5e20;
}

.command-line span {
    font-size: 12px;
    color: #2e7d32;
}

/* ===== ACCESS DENIED ===== */
.access-denied {
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 0.5s ease-in;
}

.access-denied img {
    max-width: 200px;
    margin-bottom: 30px;
    opacity: 0.7;
}

.access-denied-text {
    color: #e74c3c;
    font-size: 20px;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 768px) {
    .shell-container {
        padding: 0 15px;
    }

    .shell-header {
        padding: 25px 20px;
    }

    .shell-title {
        font-size: 24px;
        flex-direction: column;
    }

    .shell-title .material-icons {
        font-size: 36px;
    }

    .terminal-header {
        flex-direction: column;
        gap: 10px;
    }

    .terminal-content {
        height: 400px;
    }

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

    .commands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .shell-title {
        font-size: 20px;
    }

    .terminal-content {
        height: 300px;
    }

    .info-box,
    .warning-box,
    .tip-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    .commands-grid {
        grid-template-columns: 1fr;
    }

    .command-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ===== FULLSCREEN MODE ===== */
.terminal-content:fullscreen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.terminal-content:fullscreen .terminal-iframe {
    width: 100%;
    height: 100%;
}

/* ===== TERMINAL GLOW EFFECT ===== */
.terminal-section {
    position: relative;
}

.terminal-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff88, #00dd77, #00ff88);
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.terminal-section:hover::before {
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}