/* ============================================
   Admin System Operations - Custom Styles 
   Author: SP2ONG
   File: /css/system-custom.css
   Updated: 2024-12-16 - Added Material Icons support
   ============================================ */

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

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

/* === MAIN CONTAINER === */
.system-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: transparent;
    animation: fadeIn 0.6s ease-in;
} 

.fframe2 {
    background: transparent;
    border: none;
    padding: 0;
}

/* === TITLE === */
.system-header {
    text-align: center;
    margin-bottom: 30px;
    animation: slideDown 0.7s ease-out;
}

.system-title {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #00aee8;
    text-shadow: 0.5px 0.5px 2px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 15px 0;
    padding: 18px;
    background: linear-gradient(135deg, rgba(0, 174, 232, 0.1) 0%, rgba(8, 220, 110, 0.1) 100%);
    border-radius: 12px;
    border: 2px solid rgba(0, 174, 232, 0.3);
    transition: all 0.3s ease;
}

.system-title .material-icons {
    font-size: 32px;
    color: #08dc6e;
    animation: rotate 4s linear infinite;
}

.system-title:hover {
    background: linear-gradient(135deg, rgba(0, 174, 232, 0.15) 0%, rgba(8, 220, 110, 0.15) 100%);
    border-color: rgba(0, 174, 232, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 174, 232, 0.3);
}

.system-subtitle {
    font-size: 14px;
    color: #b0c4de;
    font-style: italic;
    margin: 0;
}

/* === CONSOLE OUTPUT === */
.system-console {
    background: #1a1a1a;
    border: 2px solid #00aee8;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 174, 232, 0.3);
    animation: slideUp 0.8s ease-out;
}

.console-header {
    background: linear-gradient(135deg, #00aee8 0%, #0088bb 100%);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.console-header .material-icons {
    font-size: 24px;
}

.console-output {
    padding: 20px 0px 20px 0px;
    background: #0a0a0a;
    max-height: 400px;
    overflow-y: auto;
}

.console-output pre {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: #00ff88;
    margin-left: 30px;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

/* Custom scrollbar for console */
.console-output::-webkit-scrollbar {
    width: 10px;
}

.console-output::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.console-output::-webkit-scrollbar-thumb {
    background: #00aee8;
    border-radius: 5px;
}

.console-output::-webkit-scrollbar-thumb:hover {
    background: #00d4ff;
}

/* === INFO TABLE === */
.system-info-table {
    width: 100%;
    margin-bottom: 30px;
    border-collapse: collapse;
    animation: slideUp 0.8s ease-out;
}

.system-info-table th {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
    padding: 12px;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

.info-output {
    background: #1a1a1a;
    padding: 0;
    border: 2px solid #ff9800;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.info-textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    background: #0a0a0a;
    border: none;
    color: #00ff88;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
    resize: vertical;
    box-sizing: border-box;
}

/* === BUTTON GROUP === */
.button-group {
    margin-bottom: 30px;
    animation: slideUp 0.9s ease-out;
}

.button-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.button-row:last-child {
    margin-bottom: 0;
}

.button-spacer {
    /* Pusta przestrzeń dla zachowania siatki */
}

/* === BUTTONS === */
.sys-button {
    padding: 14px 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sys-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.sys-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ✨ NOWE: Ikony w buttonach - małe i subtelne */
.sys-button .material-icons {
    font-size: 18px;
    vertical-align: middle;
    opacity: 0.95;
    transition: transform 0.3s ease;
}

.sys-button:hover .material-icons {
    transform: scale(1.1);
    animation: pulse 0.6s ease-in-out;
}

/* Button colors */
.sys-button.blue {
    background: linear-gradient(135deg, #00aee8 0%, #0088bb 100%);
}

.sys-button.blue:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #00aee8 100%);
}

.sys-button.orange {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.sys-button.orange:hover {
    background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
}

.sys-button.red {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
}

.sys-button.red:hover {
    background: linear-gradient(135deg, #ff6666 0%, #ff4444 100%);
}

.sys-button.green {
    background: linear-gradient(135deg, #08dc6e 0%, #06b559 100%);
}

.sys-button.green:hover {
    background: linear-gradient(135deg, #0aff7f 0%, #08dc6e 100%);
}

.sys-button.purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.sys-button.purple:hover {
    background: linear-gradient(135deg, #7b93ff 0%, #8b5ab8 100%);
}

.sys-button.brown {
    background: linear-gradient(135deg, #8d6e63 0%, #6d4c41 100%);
}

.sys-button.brown:hover {
    background: linear-gradient(135deg, #a1887f 0%, #8d6e63 100%);
}

.sys-button.black {
    background: linear-gradient(135deg, #2B2B2B 0%, #464646 100%);
}

.sys-button.black:hover {
    background: linear-gradient(135deg, #2B2B2B 0%, #464646 100%);
}

/* Processing state (BEZ disabled!) */
.sys-button.processing {
    pointer-events: none !important;
    cursor: wait !important;
    opacity: 0.7 !important;
}

.sys-button.processing .material-icons {
    animation: spinning 1s linear infinite;
}

/* === ADDITIONAL LINKS === */
.additional-links {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    animation: slideUp 1s ease-out;
}

.additional-links a {
    flex: 1;
    text-decoration: none;
}

.additional-links .sys-button {
    width: 100%;
}

/* === SYSTEM INFO === */
.system-info {
    animation: slideUp 1.1s ease-out;
}

.info-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #ff9800;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.info-section:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #ffa726;
    transform: translateX(5px);
}

.info-section h3 {
    color: #ff9800;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    margin: 0 0 10px 0;
}

.info-section p {
    color: #f3ead3;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.command-code {
    display: block;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #00ff88;
    border: 1px solid rgba(255, 152, 0, 0.3);
    margin-top: 10px;
}

.info-link {
    display: inline-block;
    color: #00d4ff;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-link:hover {
    color: #00aee8;
}

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

/* Tablet */
@media screen and (max-width: 768px) {
    .system-container {
        padding: 20px;
        margin: 10px;
    }
    
    .system-title {
        font-size: 22px;
        padding: 15px;
    }
    
    .button-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .additional-links {
        flex-direction: column;
    }
}

/* Mobile portrait */
@media screen and (max-width: 480px) {
    .system-container {
        padding: 15px;
        margin: 5px;
        border-radius: 10px;
    }
    
    .system-title {
        font-size: 18px;
        padding: 12px;
    }
    
    .sys-button {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .sys-button .material-icons {
        font-size: 16px;
    }
    
    .info-section {
        padding: 15px;
    }
    
    .command-code {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Very small screens */
@media screen and (max-width: 360px) {
    .system-container {
        padding: 10px;
    }
    
    .system-title {
        font-size: 16px;
    }
    
    .sys-button {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .sys-button .material-icons {
        font-size: 14px;
    }
}

/* === TYPOGRAPHY === */
h2 {
    margin: 0;
    text-shadow: 1px 1px 2px #000;
    letter-spacing: 0.5px;
    font-weight: bold;
    font-size: 12pt;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", 'Oswald', 
                 Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
    padding-bottom: 6px;
}

h2::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.7), transparent);
    border-radius: 1px;
}
