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

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.header {
    padding: 20px 30px;
    background-color: #4a90e2;
    color: white;
    text-align: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.header h1 {
    font-size: 1.8em;
    margin: 0;
}

.github-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.2em;
    transition: color 0.3s ease;
    text-decoration: none;
    z-index: 100;
}

.github-icon:hover {
    color: #e0e0e0;
}

.main-content {
    flex-grow: 1;
    overflow: hidden;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.table-container {
    width: 100%;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px;
}

.file-list-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    table-layout: fixed;
}

.file-list-table th,
.file-list-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    overflow: hidden;
}

.file-list-table th:first-child,
.file-list-table td:first-child,
.file-list-table th:nth-child(2),
.file-list-table td:nth-child(2),
.file-list-table th:nth-child(3),
.file-list-table td:nth-child(3) {
    width: calc((100% - 70px) / 3);
}

.file-list-table th:last-child,
.file-list-table td:last-child {
    width: 70px;
    min-width: 70px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
}

.file-list-table tbody tr:hover {
    background-color: #f5f5f5;
}

.file-list-table tbody tr[data-status="success"] {
    background-color: #e6ffe6;
}
.file-list-table tbody tr[data-status="success"] td:first-child {
    border-left: 4px solid #28a745;
}

.file-list-table tbody tr[data-status="failed"] {
    background-color: #ffe6e6;
}
.file-list-table tbody tr[data-status="failed"] td:first-child {
    border-left: 4px solid #dc3545;
}

.file-list-table tbody tr[data-status="waiting"] td:first-child,
.file-list-table tbody tr[data-status="uploading"] td:first-child {
    border-left: 4px solid transparent;
}

.copyable-text {
    display: block;
    width: 100%;
    border: 1px solid #ddd;
    background-color: #ffffff;
    padding: 6px 10px;
    margin: 0;
    border-radius: 4px;
    font: inherit;
    color: inherit;
    cursor: text;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.copyable-text[readonly] {
    background-color: #f8f8f8;
    cursor: pointer;
}

.copyable-text::-webkit-scrollbar {
    display: none;
}

.footer {
    padding: 20px 30px;
    background-color: #f8f8f8;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-group {
    display: flex;
    gap: 20px;
}

.action-button {
    padding: 12px 25px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    outline: none;
    position: relative; 
    overflow: hidden; 
}

.action-button.delete-button {
    padding: 2px 7px;
    font-size: 1.2em;
    line-height: 1;
    border-radius: 4px;
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    background-color: #dc3545;
    color: white;
}

.action-button.delete-button:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

#fileInput {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; 
    cursor: pointer; 
    z-index: 10; 
}

.action-button.primary {
    background-color: #4a90e2;
    color: white;
}

.action-button.primary:hover {
    background-color: #357bd8;
    transform: translateY(-1px);
}

.action-button.secondary {
    background-color: #6c757d;
    color: white;
}

.action-button.secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.action-button:active {
    transform: translateY(0);
}

.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 12px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 0.9em;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 768px) {
    .container {
        border-radius: 0;
    }

    .header {
        padding: 15px 20px;
        border-radius: 0;
    }

    .header h1 {
        font-size: 1.5em;
    }
    
    .github-icon {
        top: 15px;
        right: 20px;
        font-size: 1.8em;
    }

    .file-list-table th,
    .file-list-table td {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    .footer {
        padding: 15px 20px;
        border-radius: 0;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .action-button {
        width: 100%;
    }
    
    .table-container {
        padding: 0 10px;
    }
    
    .file-list-table th:last-child,
    .file-list-table td:last-child {
        padding-left: 5px;
        padding-right: 5px;
    }
}

@media (max-width: 480px) {}