/* ============================================
   ADMIN PAGE - CUSTOM STYLES
   SVXLink Dashboard by SP2ONG
   ============================================ */

/* Animations */
@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(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

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

/* Container */
.admin-container {
    max-width: 960px;
    margin: 20px auto;
    padding: 15px 20px;
    animation: fadeIn 0.5s ease-in;
}

/* Header */
.admin-header {
    background: linear-gradient(135deg, #1d2658 0%, #3f4c84 100%);
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.6s ease-out;
}

.admin-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #08dc6e;
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-title .material-icons {
    vertical-align: middle;
    font-size: 30px;
    color: #00aee8;
}

.admin-subtitle {
    color: #f3ead3;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    margin: 4px 0 0 0;
    opacity: 0.9;
}

/* Info/Tip Boxes */
.info-box,
.tip-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    animation: slideUp 0.6s ease-out;
}

.info-box {
    background: rgba(33, 150, 243, 0.15);
    border-left: 4px solid #2196f3;
}

.tip-box {
    background: rgba(8, 220, 110, 0.15);
    border-left: 4px solid #08dc6e;
    margin-top: 15px;
}

.info-box .material-icons,
.tip-box .material-icons {
    font-size: 22px;
    flex-shrink: 0;
}

.info-box .material-icons {
    color: #2196f3;
}

.tip-box .material-icons {
    color: #08dc6e;
}

.info-box p,
.tip-box p {
    color: #f3ead3;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

/* Menu Grid - 2 columns */
.admin-menu-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Menu Item */
.menu-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #1d2658 0%, #2a3668 100%);
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(8, 220, 110, 0.2);
    transition: all 0.3s ease;
    animation: slideUp 0.5s ease-out;
    animation-fill-mode: both;
}

.menu-item:nth-child(1)  { animation-delay: 0.03s; }
.menu-item:nth-child(2)  { animation-delay: 0.06s; }
.menu-item:nth-child(3)  { animation-delay: 0.09s; }
.menu-item:nth-child(4)  { animation-delay: 0.12s; }
.menu-item:nth-child(5)  { animation-delay: 0.15s; }
.menu-item:nth-child(6)  { animation-delay: 0.18s; }
.menu-item:nth-child(7)  { animation-delay: 0.21s; }
.menu-item:nth-child(8)  { animation-delay: 0.24s; }
.menu-item:nth-child(9)  { animation-delay: 0.27s; }
.menu-item:nth-child(10) { animation-delay: 0.30s; }
.menu-item:nth-child(11) { animation-delay: 0.33s; }
.menu-item:nth-child(12) { animation-delay: 0.36s; }
.menu-item:nth-child(13) { animation-delay: 0.39s; }
.menu-item:nth-child(14) { animation-delay: 0.42s; }
.menu-item:nth-child(15) { animation-delay: 0.45s; }

.menu-item:hover {
    border-color: #08dc6e;
    box-shadow: 0 4px 16px rgba(8, 220, 110, 0.25);
    transform: translateY(-2px);
}

/* Menu Icon */
.menu-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00aee8 0%, #0088bb 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 174, 232, 0.3);
    transition: all 0.3s ease;
}

.menu-item:hover .menu-icon {
    animation: pulse 0.6s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 174, 232, 0.5);
}

.menu-icon .material-icons {
    font-size: 22px;
    color: white;
}

/* Menu Content */
.menu-content {
    flex: 1;
    min-width: 0;
}

.menu-title {
    color: #08dc6e;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 3px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.menu-description {
    color: #f3ead3;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.85;
}

/* Info Link (dla SVXC) */
.info-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #00aee8;
    text-decoration: none;
    font-weight: 600;
    margin-left: 6px;
    transition: color 0.3s ease;
    font-size: 11px;
}

.info-link:hover {
    color: #08dc6e;
    text-decoration: underline;
}

.info-link .material-icons {
    font-size: 14px;
}

/* Access Denied */
.access-denied {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.access-denied img {
    max-width: 400px;
    opacity: 0.8;
    margin-bottom: 20px;
    animation: slideDown 0.6s ease-out;
}

.access-denied-text {
    color: #f3ead3;
    font-size: 18px;
    font-family: 'Roboto', sans-serif;
    margin-top: 20px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media screen and (max-width: 768px) {
    .admin-container {
        padding: 12px 15px;
        margin: 15px auto;
    }

    .admin-header {
        padding: 12px 16px;
    }

    .admin-title {
        font-size: 20px;
        gap: 10px;
    }

    .admin-title .material-icons {
        font-size: 26px;
    }

    .admin-menu-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .menu-icon {
        width: 36px;
        height: 36px;
    }

    .menu-icon .material-icons {
        font-size: 20px;
    }

    .menu-title {
        font-size: 14px;
    }

    .menu-description {
        font-size: 11px;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    .admin-container {
        padding: 10px;
        margin: 10px auto;
    }

    .admin-header {
        padding: 10px 12px;
        border-radius: 8px;
    }

    .admin-title {
        font-size: 18px;
    }

    .admin-title .material-icons {
        font-size: 24px;
    }

    .info-box,
    .tip-box {
        padding: 8px 10px;
        gap: 10px;
    }

    .info-box .material-icons,
    .tip-box .material-icons {
        font-size: 20px;
    }

    /* Single column on mobile */
    .admin-menu-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .menu-item {
        padding: 10px;
        gap: 10px;
    }

    .menu-icon {
        width: 38px;
        height: 38px;
    }

    .menu-title {
        font-size: 14px;
    }

    .menu-description {
        font-size: 11px;
    }

    .info-link {
        display: inline-flex;
        margin-left: 4px;
    }

    .access-denied img {
        max-width: 250px;
    }

    .access-denied-text {
        font-size: 16px;
    }
}
