/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #FFF9E6; /* Light Gold background */
    line-height: 1.6;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

/* Buttons */
.btn {
    padding: 5px 14px;
    border-radius: 5px;
    font-weight: 500;
}

.btn-primary {
    background-color: #FFDF00; /* Brighter Gold */
    border: none;
    color: #333;
}

.btn-primary:hover {
    background-color: #FFE44D; /* Lighter Gold for hover */
    color: #333;
}

.btn-success {
    background-color: #FFDF00; /* Brighter Gold */
    border: none;
    color: #333;
}

.btn-success:hover {
    background-color: #FFE44D; /* Lighter Gold for hover */
    color: #333;
}

/* Forms */
.form-control:focus {
    border-color: #FFDF00; /* Brighter Gold */
    box-shadow: 0 0 0 0.25rem rgba(255, 223, 0, 0.3); /* Brighter Gold with transparency */
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, #FFDF00 0%, #FFEC80 100%); /* Light Gold Gradient */
    color: #333;
    padding: 30px 0;
    margin-bottom: 20px;
    border-radius: 0 0 20px 20px;
}

.welcome-section h1 {
    font-weight: 700;
    margin-bottom: 10px;
}

.welcome-section p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Profile Image */
.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* CV Preview */
.cv-preview {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .welcome-section {
        padding: 40px 0;
    }
    
    .welcome-section h1 {
        font-size: 1.8rem;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: #fff;
        color: #000;
        -webkit-print-color-adjust: exact; /* For Chrome/Safari */
        print-color-adjust: exact; /* Standard */
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .cv-preview {
        box-shadow: none;
        padding: 0;
    }

    /* Added styles for single page printing */
    .card {
        box-shadow: none !important;
        border: 1px solid #eee !important;
        margin-bottom: 10px !important;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }

    p, ul, ol, table, blockquote {
        page-break-inside: avoid;
    }

    /* Adjust font sizes for printing */
    body {
        font-size: 10pt;
    }

    .card-header h4 {
        font-size: 12pt;
    }

    .card-body p {
        font-size: 10pt;
    }

    /* Remove unnecessary margins/paddings */
    .py-5, .mb-4 {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Ensure images fit */
    img {
        max-width: 100%;
        height: auto;
    }
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Responsive Adjustments ===== */

/* Mobile: all columns full width, stack content */
@media (max-width: 575.98px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .card-body {
    padding: 1rem;
  }

  .card-header h4,
  .card-header h5 {
    font-size: 1rem;
  }

  .btn {
    font-size: 0.875rem;
    padding: 0.4rem 1rem;
  }

  .profile-img {
    width: 100px;
    height: 100px;
  }

  .form-label {
    font-size: 0.9rem;
  }

  .form-control,
  .form-select {
    font-size: 0.9rem;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.15rem; }
  h4 { font-size: 1.05rem; }

  .d-flex.justify-content-between {
    flex-direction: column;
    gap: 0.75rem;
  }

  .d-flex.justify-content-between .btn {
    width: 100%;
    justify-content: center;
  }

  .table-responsive {
    font-size: 0.8rem;
  }

  footer .row {
    text-align: center;
  }

  footer .footer-title::after {
    right: 50%;
    transform: translateX(50%);
  }
}

/* Tablets */
@media (min-width: 576px) and (max-width: 991.98px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Print */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .cv-preview {
    box-shadow: none;
    padding: 0;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #eee !important;
    margin-bottom: 10px !important;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  p, ul, ol, table, blockquote {
    page-break-inside: avoid;
  }
}
