/* Mobile-first CSS for Snapbox Secure */

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

body {
    font-family: 'MADE TOMMY', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background: #0B2A51;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

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

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* Main Content */
main {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

/* Upload Section */
.upload-section {
    margin-bottom: 30px;
}

/* Drop Zone */
.drop-zone {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9ff;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #764ba2;
    background: #f0f0ff;
    transform: scale(1.02);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-icon {
    width: 60px;
    height: 60px;
    color: #667eea;
}

.drop-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.drop-subtext {
    font-size: 0.9rem;
    color: #666;
}

/* File Input */
.drop-zone input[type="file"] {
    display: none;
}

/* File Info */
.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f0f0ff;
    border-radius: 10px;
    margin-top: 15px;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.file-name {
    font-weight: 600;
    color: #333;
    word-break: break-all;
}

.file-size {
    font-size: 0.85rem;
    color: #666;
}

.remove-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.remove-btn:hover {
    background: #ff6b81;
}

/* Upload Button */
.upload-btn {
    width: 100%;
    padding: 15px;
    background: #3398D5;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.upload-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.upload-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: inline;
}

/* Messages */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
    font-size: 0.95rem;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
    font-size: 0.95rem;
}

.rate-limit-message {
    color: #f59e0b;
    background-color: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
    font-size: 0.95rem;
}

/* Info Section */
.info-section {
    border-top: 2px solid #f0f0f0;
    padding-top: 30px;
}

.info-section h2 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    margin-top: 25px;
}

.info-section h2:first-child {
    margin-top: 0;
}

.file-list {
    list-style: none;
    padding: 0;
}

.file-list li {
    padding: 10px 0;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.file-list li:last-child {
    border-bottom: none;
}

.limit-info {
    color: #666;
    line-height: 1.6;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    header {
        margin-bottom: 20px;
    }

    .logo {
        max-width: 80%;
    }

    header h1 {
        font-size: 2rem;
    }

    main {
        padding: 20px;
    }

    .drop-zone {
        padding: 30px 15px;
    }

    .upload-icon {
        width: 50px;
        height: 50px;
    }

    .drop-text {
        font-size: 1rem;
    }

    .drop-subtext {
        font-size: 0.85rem;
    }
}

/* Phone Design - Change text for touch devices */
@media (max-width: 480px) {
    .drop-text:not(.phone-drop-text) {
        display: none;
    }

    .phone-drop-text {
        font-size: 1rem;
        color: #667eea;
    }

    .drop-subtext {
        display: none;
    }
}

/* Tablet Design */
@media (min-width: 481px) and (max-width: 768px) {
    main {
        padding: 25px;
    }
}

/* Desktop Design */
@media (min-width: 769px) {
    body {
        padding: 40px;
    }

    main {
        padding: 40px;
    }
}