/* MC Resource Pack Hosting - Stylesheet */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
    font-size: 2.5rem;
    color: #4ecca3;
    margin-bottom: 10px;
}

header p {
    color: #888;
    font-size: 1.1rem;
}

/* Messages */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message.success {
    background: rgba(78, 204, 163, 0.2);
    border: 1px solid #4ecca3;
    color: #4ecca3;
}

.message.error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

.message code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
}

/* Sections */
section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

section h2 {
    color: #4ecca3;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Upload Form */
.upload-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.file-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-input-wrapper label {
    display: block;
    padding: 15px 20px;
    background: rgba(78, 204, 163, 0.1);
    border: 2px dashed #4ecca3;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input-wrapper:hover label {
    background: rgba(78, 204, 163, 0.2);
}

/* Name Input */
.name-input-wrapper {
    flex: 1;
    min-width: 200px;
}

.name-input-wrapper input[type="text"] {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.name-input-wrapper input[type="text"]:focus {
    outline: none;
    border-color: #4ecca3;
    background: rgba(255, 255, 255, 0.08);
}

.name-input-wrapper input[type="text"]::placeholder {
    color: #888;
}

.name-input-wrapper small {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 0.8rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4ecca3;
    color: #1a1a2e;
}

.btn-primary:hover {
    background: #3db892;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: #ff6b6b;
    color: white;
}

.btn-danger:hover {
    background: #ee5a5a;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-copy {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.btn-copy:hover {
    opacity: 1;
}

/* Files Table */
.files-table-wrapper {
    overflow-x: auto;
}

.files-table {
    width: 100%;
    border-collapse: collapse;
}

.files-table th,
.files-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.files-table th {
    background: rgba(78, 204, 163, 0.1);
    color: #4ecca3;
    font-weight: 600;
    white-space: nowrap;
}

.files-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.files-table .filename {
    font-weight: 500;
    color: #fff;
}

.files-table .sha1 code {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    color: #ffd93d;
    word-break: break-all;
}

.files-table td.actions {
    white-space: nowrap;
}

.files-table td.actions .btn {
    margin-right: 5px;
    margin-bottom: 5px;
}

.delete-form {
    display: inline;
}

.no-files {
    text-align: center;
    color: #888;
    padding: 40px;
    font-style: italic;
}

/* Admin Navigation */
.admin-nav {
    margin-bottom: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #666;
}

footer a {
    color: #4ecca3;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Copy Tooltip */
.copy-tooltip {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #4ecca3;
    color: #1a1a2e;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    animation: fadeInOut 1.5s ease;
    z-index: 1000;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    20% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .upload-form {
        flex-direction: column;
    }
    
    .file-input-wrapper {
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .files-table .sha1 code {
        font-size: 0.75rem;
    }
}
