﻿body {
    background-color: #2c2c2c;
    font-family: Arial, sans-serif;
    color: #e0e0e0; /* لون النص الأساسي */
    padding: 20px;
    margin: 0;
    margin-left: 220px;
}

h2 {
    color: #f39c12; /* لون العنوان */
    text-align: center;
    margin-bottom: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #333;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

    .table th, .table td {
        padding: 12px 15px;
        border-bottom: 1px solid #555;
        text-align: center;
        font-size: 0.9em;
        color: #f1c40f; /* لون النص داخل الجدول */
    }

    .table th {
        background-color: #444;
        color: #f39c12; /* لون النص للرؤوس */
        text-transform: uppercase;
        font-weight: bold;
    }

    .table tr:nth-child(even) {
        background-color: #3a3a3a;
    }

    .table tr:hover {
        background-color: #444;
        transition: background-color 0.3s;
    }

.btn {
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s, transform 0.2s;
}

    .btn i {
        margin-right: 5px;
    }

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

    .btn-primary:hover {
        background-color: #2980b9;
    }

.btn-warning {
    background-color: #f39c12;
    color: #fff;
}

    .btn-warning:hover {
        background-color: #e67e22;
    }

.btn-success {
    background-color: #28a745;
    color: #fff;
}

    .btn-success:hover {
        background-color: #2ecc71;
    }

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    color: #fff;
}

    .badge.bg-success {
        background-color: #27ae60;
    }

    .badge.bg-secondary {
        background-color: #7f8c8d;
    }

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #292b2c;
    color: #fff;
    padding: 20px;
    overflow-y: auto;
    z-index: 1000;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #555;
}

    .popup-header h3 {
        font-size: 1.5em;
        color: #ffc107;
    }

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #dc3545;
    color: #fff;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .close-btn:hover {
        background: #c82333;
    }

.section {
    margin-bottom: 30px;
}

    .section h2 {
        font-size: 1.3em;
        color: #ffc107;
        margin-bottom: 15px;
    }

#commandInput {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    background-color: #333;
    color: #00FF00;
    border: 1px solid #555;
    border-radius: 4px;
    font-family: Consolas, "Courier New", monospace;
}

.cmd-output {
    background-color: #1E1E1E;
    color: #00FF00;
    padding: 10px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9em;
    white-space: pre-wrap;
    border-radius: 5px;
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
}

#screenshotTab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #2b2b2b;
    color: #ffffff;
    border-radius: 8px;
}

.screenshot-image {
    max-width: 80%;
    max-height: 500px;
    border-radius: 8px;
    margin: 15px auto;
    border: 2px solid #444;
    display: block;
}

#screenshotSection .btn {
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    outline: none;
}

#screenshotSection .btn-primary {
    background-color: #007bff;
    color: #ffffff;
}

#screenshotSection .btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

#screenshotSection .btn-primary.active {
    background-color: #0056b3;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
}

#screenshotSection .btn-secondary.active {
    background-color: #5a6268;
    box-shadow: 0 0 10px rgba(108, 117, 125, 0.6);
}

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    color: #00FF00;
    padding: 5px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 1em;
    margin-bottom: 10px;
    border-radius: 4px;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.drives-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
}

.drive-item {
    display: flex;
    align-items: center;
    padding: 10px;
    width: 150px;
    background-color: #333;
    border-radius: 5px;
    color: #ffc107;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

    .drive-item:hover {
        background-color: #444;
    }

    .drive-item i {
        font-size: 1.5em;
        margin-right: 10px;
    }

.download-btn {
    background-color: #007ACC;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

    .download-btn:hover {
        background-color: #005A9E;
    }

.folder-icon {
    color: #f0b90b;
}

.file-icon {
    color: #9E9E9E;
}

.fa-file-pdf {
    color: #d9534f;
}

.fa-file-word {
    color: #1e70c1;
}

.fa-file-alt {
    color: #5bc0de;
}

.fa-file-archive {
    color: #f39c12;
}

.btn-danger {
    background-color: #d9534f;
    color: #fff;
    border: none;
    padding: 5px 10px;
    margin: 2px;
    cursor: pointer;
}

    .btn-danger:hover {
        background-color: #c9302c;
    }

.btn-warning {
    background-color: #f0ad4e;
    color: #fff;
    border: none;
    padding: 5px 10px;
    margin: 2px;
    cursor: pointer;
}

    .btn-warning:hover {
        background-color: #ec971f;
    }

.directory-row td i {
    font-size: 1.2em;
    margin-right: 10px;
}

.file-icon {
    color: #6A737D;
}

.folder-icon {
    color: #FFD700;
}

.file-icon.pdf {
    color: #D9534F;
}

.file-icon.word {
    color: #1E70C1;
}

.file-icon.excel {
    color: #28A745;
}

.file-icon.txt {
    color: #5BC0DE;
}

.file-icon.archive {
    color: #FFC107;
}

.btn-primary {
    padding: 5px 8px;
    font-size: 0.85em;
    border-radius: 4px;
}

.card {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #383838;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
}

/* Apply static height and scroll for the file manager table */
#fileManagerSection table {
    width: 100%;
    border-collapse: collapse;
    background-color: #333;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    display: block;
    max-height: 300px; /* Set static height */
    overflow-y: scroll; /* Add vertical scroll */
}

    #fileManagerSection table thead {
        background-color: #444;
        position: sticky;
        top: -4px;
        z-index: 2;
    }

    #fileManagerSection table th,
    #fileManagerSection table td {
        padding: 12px 15px;
        border-bottom: 1px solid #555;
        text-align: center;
        font-size: 0.9em;
        text-align: left;
    }

    #fileManagerSection table th {
        color: #ffc107;
        text-transform: uppercase;
        font-weight: bold;
    }

    #fileManagerSection table tr:nth-child(even) {
        background-color: #3a3a3a;
    }

    #fileManagerSection table tr:hover {
        background-color: #555;
        transition: background-color 0.3s;
    }

 
#resultTable {
    width: 100%; /* عرض الجدول بالكامل */
    table-layout: fixed; /* يجعل الأعمدة تأخذ عرضاً ثابتاً */
    border-collapse: collapse; /* إزالة المسافات بين الحدود */
}

/* إعداد حدود للجدول */
#resultTable th,
#resultTable td {
    border: 1px solid #ddd; /* حدود الخلايا */
    padding: 8px; /* مسافة داخل الخلية */
    text-align: left; /* محاذاة النص لليسار */
}

    /* تحديد عرض ثابت لكل عمود */
    #resultTable th:nth-child(1), /* العمود الأول */
    #resultTable td:nth-child(1) {
        width: 40%; /* عرض العمود الأول */
    }

    #resultTable th:nth-child(2), /* العمود الثاني */
    #resultTable td:nth-child(2) {
        width: 30%; /* عرض العمود الثاني */
    }

    #resultTable th:nth-child(3), /* العمود الثالث */
    #resultTable td:nth-child(3) {
        width: 30%; /* عرض العمود الثالث */
    }
 
