/* Główne style dla FileTransfer.pl */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 200, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Kontenery */
.container {
    max-width: 600px;
    margin: 2em auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 2.5em;
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    z-index: 1;
}

/* Nagłówki */
h1 {
    text-align: center;
    color: #1a1a2e;
    margin-bottom: 1.5em;
    font-weight: 700;
    font-size: 2.2em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    color: #667eea;
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 600;
}

h3 {
    color: #667eea;
    margin-bottom: 1em;
    font-weight: 600;
}

/* Wiadomości */
.success {
    color: #065f46;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 1.2em;
    border-radius: 16px;
    margin-bottom: 1.5em;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
    backdrop-filter: blur(10px);
}

.error {
    color: #991b1b;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 1.2em;
    border-radius: 16px;
    margin-bottom: 1.5em;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
    backdrop-filter: blur(10px);
}

/* Formularze */
label {
    display: block;
    margin-top: 1.5em;
    color: #374151;
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 0.5em;
}

input[type="file"],
input[type="email"],
input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 0.9em 1em;
    margin-top: 0.3em;
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    font-size: 1em;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="file"]:focus,
input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

/* Przyciski */
button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 1em 2.5em;
    border-radius: 16px;
    font-size: 1.1em;
    margin-top: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: inherit;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.5);
}

button:hover::before {
    left: 100%;
}

button:active {
    transform: translateY(0);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

button:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Linki */
.download-link {
    margin: 0.5em 0;
    word-break: break-all;
}

.back-btn {
    display: block;
    text-align: center;
    margin-top: 2em;
    color: #2a7ae2;
    text-decoration: none;
    font-weight: 500;
}

.back-btn:hover {
    text-decoration: underline;
}

/* Branding */
.branding {
    text-align: center;
    margin-bottom: 2.5em;
}

.branding img {
    max-width: 120px;
    margin-bottom: 1em;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.branding .brand-title {
    font-size: 2.5em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 0.5em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.branding .brand-desc {
    color: #6b7280;
    font-size: 1.1em;
    font-weight: 500;
    opacity: 0.9;
}

/* Footer */
.footer {
    text-align: center;
    color: #aaa;
    font-size: 0.95em;
    margin-top: 2em;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    margin: 0 0.3em;
}

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

/* Strony polityki i regulaminu */
.policy-content {
    text-align: left;
    line-height: 1.6;
    color: #444;
}

.policy-content h2 {
    color: #667eea;
    margin-top: 2em;
    margin-bottom: 1em;
    font-size: 1.3em;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5em;
}

.policy-content h2:first-child {
    margin-top: 1em;
}

.policy-content ul {
    margin: 1em 0;
    padding-left: 2em;
}

.policy-content li {
    margin: 0.5em 0;
}

.policy-content p {
    margin: 1em 0;
}

/* Przyciski dodawania */
.add-buttons {
    display: flex;
    gap: 1em;
    margin-bottom: 2em;
}

.add-buttons button {
    flex: 1;
    margin-top: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #374151;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.add-buttons button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
    color: #667eea;
    transform: translateY(-2px);
}

/* Lista plików */
.file-list {
    margin: 2em 0;
}

.file-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    padding: 1.2em;
    margin: 0.8em 0;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.8);
}

.file-item .file-info {
    flex: 1;
}

.file-item .file-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.2em;
}

.file-item .file-size {
    color: #666;
    font-size: 0.9em;
}

.file-item .file-path {
    color: #888;
    font-size: 0.85em;
    font-style: italic;
}

.file-item .remove-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 0.3em 0.8em;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: 1em;
}

.file-item .remove-btn:hover {
    background: #c82333;
}

/* Podsumowanie */
.summary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    backdrop-filter: blur(20px);
    padding: 1.5em;
    border-radius: 16px;
    margin: 2em 0;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.summary .total-files {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1em;
}

.summary .total-size {
    color: #6b7280;
    font-weight: 500;
}

/* Ukryte elementy */
.hidden {
    display: none;
}

.file-input {
    display: none;
}

/* Strona sukcesu */
.download-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    backdrop-filter: blur(20px);
    padding: 2em;
    border-radius: 20px;
    margin: 2em 0;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.download-link {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5em;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin: 1.5em 0;
    word-break: break-all;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.download-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.copy-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    padding: 1em 2em;
    border-radius: 16px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1em;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.expire-info {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 1.5em;
    border-radius: 16px;
    margin: 1.5em 0;
    color: #92400e;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.info {
    color: #666;
    font-size: 0.95em;
    margin: 1em 0;
}

.info ul {
    margin-left: 1.5em;
    margin-top: 0.5em;
}

.info li {
    margin-bottom: 0.3em;
}

/* Panel administracyjny */
.admin-container {
    max-width: 1100px;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 2em;
    background: #fafbff;
}

th, td {
    border: 1px solid #e0e4ef;
    padding: 8px 12px;
    text-align: left;
}

th {
    background: #eaf1fb;
    color: #2a7ae2;
    font-weight: 600;
}

tr:nth-child(even) {
    background: #f6f7fb;
}

form.inline {
    display: inline;
}

.danger {
    color: #b30000;
    text-decoration: none;
    font-weight: bold;
}

.danger:hover {
    text-decoration: underline;
}

input[type="number"] {
    width: 110px;
}

.stats {
    margin-bottom: 2em;
    background: #eafbe7;
    border: 1px solid #b6e2b6;
    border-radius: 6px;
    padding: 1em;
    color: #1a7f1a;
}

/* Strona pobierania */
.download-btn {
    display: block;
    width: 100%;
    background: #2a7ae2;
    color: #fff;
    border: none;
    padding: 1em;
    border-radius: 6px;
    font-size: 1.2em;
    margin: 2em 0 1em 0;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

.download-btn:hover {
    background: #1558b0;
}

.zip-preview {
    background: #f6f7fb;
    border: 1px solid #e0e4ef;
    border-radius: 6px;
    padding: 1em;
    margin-bottom: 1.5em;
}

.zip-preview h3 {
    margin-top: 0;
    color: #2a7ae2;
    font-size: 1.1em;
}

.zip-list {
    font-size: 0.98em;
    color: #333;
    margin: 0;
    padding-left: 1.2em;
}

.zip-list li.more-files {
    font-style: italic;
    color: #888;
    text-align: center;
    font-size: 0.9em;
    margin-top: 0.5em;
    padding: 0.5em;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.ad {
    margin: 2em 0;
    text-align: center;
    min-height: 90px;
    background: #f8f9fa;
    border: 2px dashed #e0e4ef;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
}

.password-form {
    margin: 2em 0;
    text-align: center;
}

.password-form input[type="text"],
.password-form input[type="password"] {
    padding: 0.5em;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 70%;
    max-width: 220px;
    margin-bottom: 0.5em;
}

.password-form button {
    background: #2a7ae2;
    color: #fff;
    border: none;
    padding: 0.5em 2em;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s;
}

.password-form button:hover {
    background: #1558b0;
}

/* Responsywność */
@media (max-width: 768px) {
    body {
        padding: 0.5em;
    }
    
    .container {
        margin: 1em 0.5em;
        padding: 1.5em;
        border-radius: 20px;
    }
    
    .admin-container {
        margin: 1em 0.5em;
        padding: 1.5em;
    }
    
    .branding .brand-title {
        font-size: 2em;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .add-buttons {
        flex-direction: column;
        gap: 0.8em;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1em;
    }
    
    .file-item .remove-btn {
        margin-left: 0;
        margin-top: 0.8em;
        align-self: flex-end;
        padding: 0.5em 1em;
    }
    
    .download-section {
        padding: 1.5em;
        margin: 1.5em 0;
    }
    
    .download-link {
        padding: 1.2em;
        font-size: 0.85em;
    }
    
    table {
        font-size: 0.9em;
    }
    
    th, td {
        padding: 6px 8px;
    }
    
    input[type="text"],
    input[type="number"] {
        width: 80px;
    }
    
    button {
        padding: 0.9em 2em;
        font-size: 1em;
    }
}

/* Upload Progress Overlay */
.upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.upload-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.upload-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5em;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.18);
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { 
        transform: translateY(30px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.upload-header h3 {
    color: #1a1a2e;
    margin-bottom: 0.5em;
    font-size: 1.5em;
    font-weight: 700;
}

.upload-status {
    color: #6b7280;
    font-size: 0.95em;
    margin-bottom: 2em;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 1.2em;
}

.progress-container {
    margin: 2em 0;
}

.progress-circle {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5em;
}

.progress-ring {
    transition: stroke-dashoffset 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5em;
    font-weight: 700;
    color: #667eea;
}

.progress-bar-container {
    width: 100%;
    margin-top: 1em;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.upload-details {
    margin: 2em 0;
    padding: 1.5em;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.upload-size {
    font-size: 1.1em;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5em;
}

.upload-speed {
    color: #6b7280;
    font-size: 0.95em;
    margin-bottom: 0.3em;
}

.upload-eta {
    color: #9ca3af;
    font-size: 0.9em;
}

.cancel-upload-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.8em 2em;
    border-radius: 12px;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.4);
}

.cancel-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.5);
}

.cancel-upload-btn:active {
    transform: translateY(0);
}

/* Mobile responsive dla upload overlay */
@media (max-width: 768px) {
    .upload-modal {
        padding: 2em;
        margin: 1em;
    }
    
    .upload-header h3 {
        font-size: 1.3em;
    }
    
    .progress-circle svg {
        width: 100px;
        height: 100px;
    }
    
    .progress-text {
        font-size: 1.3em;
    }
} 