/* UFAM Frontend Styles */
.ufam-login-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ufam-form-group {
    margin-bottom: 20px;
}

.ufam-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.ufam-form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.ufam-submit-btn {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.ufam-submit-btn:hover {
    background: #005a87;
}

.ufam-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* File Listing Styles */
.ufam-file-listing {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.ufam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.ufam-logout-btn {
    padding: 8px 16px;
    background: #dc3232;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.ufam-logout-btn:hover {
    background: #a00;
    color: white;
    text-decoration: none;
}

.ufam-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ufam-file-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ufam-file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.ufam-file-icon {
    font-size: 36px;
    margin-right: 15px;
    min-width: 50px;
    text-align: center;
}

.ufam-file-info {
    flex: 1;
    min-width: 0;
}

.ufam-file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    word-break: break-word;
}

.ufam-file-size {
    color: #666;
    font-size: 14px;
    margin-bottom: 3px;
}

.ufam-file-extension {
    color: #0073aa;
    font-size: 12px;
    font-weight: 600;
}

.ufam-download-btn {
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.ufam-download-btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

/* Message Styles */
.ufam-message {
    margin-top: 15px;
}

.ufam-success {
    padding: 10px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 4px;
}

.ufam-error {
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 4px;
}

.ufam-info {
    padding: 10px;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    border-radius: 4px;
}

.ufam-no-files {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ufam-files-grid {
        grid-template-columns: 1fr;
    }
    
    .ufam-file-item {
        flex-direction: column;
        text-align: center;
    }
    
    .ufam-file-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .ufam-header {
        flex-direction: column;
        gap: 15px;
    }
}
