/* Custom styles for Oggetto Pec webapp */

body {
    background: linear-gradient(135deg, #e0f2fe 0%, #e0e7ff 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.125rem;
    color: #4b5563;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
}

.step-number.active {
    background-color: #2563eb;
    color: white;
}

.step-number:not(.active) {
    background-color: #d1d5db;
    color: #6b7280;
}

.step-line {
    height: 2px;
    width: 3rem;
    background-color: #d1d5db;
    transition: all 0.3s ease;
}

.step-line.active {
    background-color: #2563eb;
}

.step {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
    display: none;
}

.step.active {
    display: block;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.step-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.drop-zone {
    border: 2px dashed #93c5fd;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: #3b82f6;
    background-color: #dbeafe;
}

.drop-icon {
    height: 4rem;
    width: 4rem;
    color: #60a5fa;
    margin: 0 auto 1rem;
}

.drop-text {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.drop-subtext {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.file-select-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: #2563eb;
    color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.file-select-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.button-icon {
    height: 1.25rem;
    width: 1.25rem;
    margin-right: 0.5rem;
}

.file-name {
    margin-top: 1rem;
    font-size: 0.875rem;
}

.file-name.success {
    color: #059669;
}

.file-name.error {
    color: #dc2626;
}

.step-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.step-actions.dual {
    justify-content: space-between;
}

.btn-primary, .btn-secondary, .btn-success {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover:not(.disabled) {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-primary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-success {
    background-color: #059669;
    color: white;
}

.btn-success:hover {
    background-color: #047857;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-icon {
    height: 1.25rem;
    width: 1.25rem;
}

.btn-primary .btn-icon {
    margin-left: 0.5rem;
}

.btn-secondary .btn-icon, .btn-success .btn-icon {
    margin-right: 0.5rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.success-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.success-icon {
    height: 4rem;
    width: 4rem;
    color: #10b981;
    margin: 0 auto 1rem;
}

.success-text {
    color: #6b7280;
    font-size: 1.125rem;
}

.summary-section {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.summary-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.summary-label {
    font-weight: 500;
}

.summary-value {
    color: #2563eb;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding: 1rem 0.5rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .step {
        padding: 1.5rem;
    }
    
    .step-actions.dual {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-actions.dual button {
        width: 100%;
        justify-content: center;
    }
}
