/**
 * Application Submission Styles
 * Phase 4: Smart submission and tracking interface
 */

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

/* Header */
.submission-header {
    text-align: center;
    margin-bottom: 30px;
}

.submission-header h2 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.submission-header p {
    color: #666;
    font-size: 16px;
}

/* Application Summary Card */
.application-summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.summary-header {
    margin-bottom: 20px;
}

.summary-header h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.company-name {
    font-size: 18px;
    opacity: 0.9;
}

.summary-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-label {
    font-weight: 600;
    opacity: 0.9;
}

.detail-value {
    opacity: 0.95;
}

.tracking-id {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Materials Quick Access */
.materials-quick-access {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
}

.materials-quick-access h3 {
    font-size: 20px;
    color: #1f2937;
    margin-bottom: 20px;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.material-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.material-card:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.material-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
}

.material-info {
    flex: 1;
}

.material-info h4 {
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 4px;
}

.material-info p {
    font-size: 13px;
    color: #6b7280;
}

.material-actions {
    display: flex;
    gap: 8px;
}

.material-actions button {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    color: #4b5563;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.material-actions button:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.material-actions .icon {
    font-size: 14px;
}

/* Application Link Section */
.application-link-section {
    background: #fef3c7;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #fde68a;
}

.application-link-section h3 {
    font-size: 20px;
    color: #92400e;
    margin-bottom: 20px;
}

.link-container {
    margin-bottom: 20px;
}

.application-link {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    color: #1f2937;
    border: 2px solid #fbbf24;
    transition: all 0.3s ease;
}

.application-link:hover {
    background: #fffbeb;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

.link-icon {
    font-size: 28px;
}

.link-text {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
}

.link-arrow {
    font-size: 24px;
    color: #f59e0b;
}

.custom-link-input {
    display: flex;
    gap: 10px;
}

.custom-link-input input {
    flex: 1;
    padding: 12px;
    border: 2px solid #fbbf24;
    border-radius: 8px;
    font-size: 15px;
}

.btn-set-link {
    padding: 12px 24px;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-set-link:hover {
    background: #d97706;
}

.application-tips {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 15px;
}

.application-tips h4 {
    font-size: 14px;
    color: #92400e;
    margin-bottom: 10px;
}

.application-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.application-tips li {
    padding: 5px 0;
    color: #78350f;
    font-size: 14px;
}

/* Status Tracker Section */
.status-tracker-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
}

.status-tracker-section h3 {
    font-size: 20px;
    color: #1f2937;
    margin-bottom: 20px;
}

.status-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.status-option {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.status-option:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.status-option.active {
    background: #eef2ff;
    border-color: #6366f1;
}

.status-icon {
    font-size: 24px;
}

.status-label {
    font-size: 12px;
    color: #4b5563;
    text-align: center;
}

.status-notes {
    margin-bottom: 20px;
}

.status-notes textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.reminder-setup {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
}

.reminder-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.reminder-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#reminder-days {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

#reminder-days:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Action Buttons */
.submission-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.btn-secondary {
    padding: 14px 28px;
    background: white;
    color: #4b5563;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-primary {
    padding: 14px 28px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    border: 2px solid #86efac;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 28px;
    color: #14532d;
    margin-bottom: 10px;
}

.success-message p {
    font-size: 18px;
    color: #166534;
    margin-bottom: 30px;
}

.next-steps {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
}

.next-steps h4 {
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 15px;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    padding: 8px 0;
    color: #4b5563;
    font-size: 15px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.success-actions button {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-view-tracker {
    background: #4f46e5;
    color: white;
    border: none;
}

.btn-view-tracker:hover {
    background: #4338ca;
}

.btn-apply-more {
    background: white;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}

.btn-apply-more:hover {
    background: #eef2ff;
}

/* Notifications */
.submission-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 10001;
    max-width: 350px;
}

.submission-notification.show {
    transform: translateX(0);
}

.submission-notification.success {
    border-left: 4px solid #10b981;
}

.submission-notification.info {
    border-left: 4px solid #3b82f6;
}

.submission-notification.warning {
    border-left: 4px solid #f59e0b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .summary-details {
        grid-template-columns: 1fr;
    }
    
    .materials-grid {
        grid-template-columns: 1fr;
    }
    
    .status-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .submission-actions {
        flex-direction: column;
    }
    
    .submission-actions button {
        width: 100%;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions button {
        width: 100%;
    }
}