/* Modern Application Form Styles */

/* Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --secondary-light: #d1fae5;
    --accent: #8b5cf6;
    --accent-dark: #7c3aed;
    --accent-light: #ede9fe;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1e293b;
    --medium: #64748b;
    --light: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
      sans-serif;
  }
  
  /* Base Styles */
  body {
    font-family: var(--font-sans);
    color: var(--dark);
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
    line-height: 1.5;
  }
  
  * {
    box-sizing: border-box;
  }
  
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-top: 0;
    font-weight: 600;
    line-height: 1.25;
  }
  
  /* Application Layout */
  .application-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #f8fafc;
  }
  
  /* Sidebar */
  .application-sidebar {
    width: 320px;
    background: linear-gradient(135deg, var(--dark) 0%, #0f172a 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 10;
    box-shadow: var(--shadow-lg);
  }
  
  .sidebar-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .university-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background-color: var(--white);
    border-radius: 50%;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
  }
  
  .university-logo img {
    max-width: 100%;
    max-height: 100%;
  }
  
  .sidebar-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 1px;
  }
  
  .application-number {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
  }
  
  .application-steps {
    flex: 1;
    padding: 2rem 0;
    overflow-y: auto;
  }
  
  .step {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
    opacity: 0.6;
    transition: all 0.3s ease;
  }
  
  .step::after {
    content: "";
    position: absolute;
    left: 2.5rem;
    top: 4rem;
    bottom: 0;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 0;
  }
  
  .step:last-child::after {
    display: none;
  }
  
  .step.active {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.05);
  }
  
  .step.completed {
    opacity: 0.8;
  }
  
  .step.completed .step-icon {
    background-color: var(--success);
    color: var(--white);
  }
  
  .step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
  }
  
  .step.active .step-icon {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3);
  }
  
  .step-content h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
  }
  
  .step-content p {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    opacity: 0.7;
  }
  
  .sidebar-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .help-section {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--radius-md);
  }
  
  .help-section i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--accent);
  }
  
  .help-section h5 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
  }
  
  .help-section p {
    margin: 0.25rem 0 0.5rem;
    font-size: 0.75rem;
    opacity: 0.7;
  }
  
  .help-section a {
    color: var(--accent-light);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  .help-section a:hover {
    text-decoration: underline;
  }
  
  /* Main Content */
  .application-main {
    flex: 1;
    margin-left: 320px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  .main-header {
    padding: 2rem 3rem;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }
  
  .main-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
  }
  
  .progress-container {
    display: flex;
    align-items: center;
  }
  
  .progress {
    flex: 1;
    height: 6px;
    background-color: var(--light);
    border-radius: 9999px;
    overflow: hidden;
    margin-right: 1rem;
  }
  
  .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 9999px;
    transition: width 0.5s ease;
  }
  
  .progress-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--medium);
  }
  
  .main-content {
    flex: 1;
    padding: 2rem 3rem;
    background-color: #f8fafc;
  }
  
  .main-footer {
    padding: 1.5rem 3rem;
    background-color: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.05);
  }
  
  .nav-buttons {
    display: flex;
    justify-content: space-between;
  }
  
  /* Form Elements */
  .form-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .form-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
  }
  
  .form-section {
    padding: 2rem;
  }
  
  .section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
  }
  
  .section-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1.5rem;
    box-shadow: var(--shadow-md);
  }
  
  .section-title h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
  }
  
  .section-title p {
    margin: 0.5rem 0 0;
    color: var(--medium);
    font-size: 0.95rem;
  }
  
  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .span-full {
    grid-column: 1 / -1;
  }
  
  .form-group {
    margin-bottom: 0.5rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
  }
  
  .required::after {
    content: "*";
    color: var(--danger);
    margin-left: 0.25rem;
  }
  
  .input-wrapper {
    position: relative;
  }
  
  .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium);
  }
  
  .form-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--white);
    transition: all 0.3s ease;
  }
  
  .form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
  }
  
  .form-input::placeholder {
    color: #cbd5e0;
  }
  
  .help-text {
    font-size: 0.8rem;
    color: var(--medium);
    margin-top: 0.5rem;
  }
  
  .error-message {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 500;
  }
  
  /* Radio and Checkbox Styling */
  .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .radio-option {
    position: relative;
  }
  
  .radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .radio-option label {
    display: block;
    padding: 0.6rem 1.25rem;
    background-color: var(--light);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .radio-option input[type="radio"]:checked + label {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
  }
  
  .radio-option input[type="radio"]:focus + label {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  }
  
  /* Photo Upload Styling */
  .photo-upload-section {
    display: flex;
    gap: 2rem;
  }
  
  .photo-preview {
    width: 200px;
    height: 240px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
  }
  
  .preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .no-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: var(--medium);
  }
  
  .no-photo i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
  }
  
  .no-photo p {
    margin: 0;
    font-size: 0.9rem;
  }
  
  .upload-container {
    flex: 1;
  }
  
  .upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    background-color: var(--light);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1.5rem;
  }
  
  .upload-area.dragover {
    border-color: var(--primary);
    background-color: var(--primary-light);
  }
  
  .upload-area i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
  }
  
  .upload-area h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
  }
  
  .upload-area p {
    margin: 0 0 1.5rem;
    color: var(--medium);
    font-size: 0.95rem;
  }
  
  .file-input {
    display: none;
  }
  
  .upload-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
  }
  
  .upload-button:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
  }
  
  .photo-requirements {
    background-color: var(--light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border-left: 4px solid var(--info);
  }
  
  .photo-requirements h4 {
    display: flex;
    align-items: center;
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--dark);
  }
  
  .photo-requirements h4 i {
    color: var(--info);
    margin-right: 0.5rem;
  }
  
  .photo-requirements ul {
    margin: 0;
    padding-left: 1.5rem;
  }
  
  .photo-requirements li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--medium);
  }
  
  /* Button Styles */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
  }
  
  .btn i {
    margin-right: 0.5rem;
  }
  
  .btn i:last-child {
    margin-right: 0;
    margin-left: 0.5rem;
  }
  
  .btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
  }
  
  .btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
  }
  
  .btn-secondary {
    background-color: var(--medium);
    color: var(--white);
    box-shadow: var(--shadow-sm);
  }
  
  .btn-secondary:hover {
    background-color: #4b5563;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
  }
  
  .btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
  }
  
  .btn-outline:hover {
    background-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
  }
  
  /* Responsive Adjustments */
  @media (max-width: 1024px) {
    .application-sidebar {
      width: 280px;
    }
  
    .application-main {
      margin-left: 280px;
    }
  
    .main-header,
    .main-content,
    .main-footer {
      padding-left: 2rem;
      padding-right: 2rem;
    }
  
    .form-grid {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 768px) {
    .application-wrapper {
      flex-direction: column;
    }
  
    .application-sidebar {
      width: 100%;
      position: relative;
      height: auto;
    }
  
    .sidebar-header {
      padding: 1.5rem;
    }
  
    .application-steps {
      display: none;
    }
  
    .application-main {
      margin-left: 0;
    }
  
    .photo-upload-section {
      flex-direction: column;
    }
  
    .photo-preview {
      width: 100%;
      height: 300px;
      margin-bottom: 1.5rem;
    }
  
    .nav-buttons {
      flex-direction: column;
      gap: 1rem;
    }
  
    .nav-buttons .btn {
      width: 100%;
    }
  }
  
  /* Animations */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .form-card {
    animation: fadeIn 0.5s ease-out;
  }
  
  /* Accessibility */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
  
  /* Focus styles for keyboard navigation */
  a:focus,
  button:focus,
  input:focus,
  select:focus,
  textarea:focus {
    outline: 3px solid rgba(37, 99, 235, 0.5);
    outline-offset: 2px;
  }
  
  /* Dark mode support */
  @media (prefers-color-scheme: dark) {
    :root {
      --white: #0f172a;
      --light: #1e293b;
      --dark: #f8fafc;
      --medium: #94a3b8;
      --border: #334155;
    }
  
    body {
      background-color: #0f172a;
    }
  
    .application-sidebar {
      background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    }
  
    .form-input {
      background-color: #1e293b;
      color: #f8fafc;
    }
  
    .form-input::placeholder {
      color: #64748b;
    }
  
    .radio-option label {
      background-color: #1e293b;
    }
  
    .radio-option input[type="radio"]:checked + label {
      background-color: rgba(37, 99, 235, 0.2);
    }
  }
  