/* CV Family Portal Custom Styles */

:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --info-color: #0dcaf0;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gradient-primary: linear-gradient(135deg, #0d6efd 0%, #004085 100%);
  --gradient-success: linear-gradient(135deg, #198754 0%, #0a3622 100%);
  --gradient-info: linear-gradient(135deg, #0dcaf0 0%, #055160 100%);
  --gradient-warning: linear-gradient(135deg, #ffc107 0%, #664d03 100%);
}

/* Global Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
}

.bg-gradient {
  background: var(--gradient-primary);
}

.bg-gradient-success {
  background: var(--gradient-success);
}

.bg-gradient-info {
  background: var(--gradient-info);
}

.bg-gradient-warning {
  background: var(--gradient-warning);
}

/* Navigation */
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
  background: var(--gradient-primary);
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  opacity: 0.3;
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

/* Profile Header */
.profile-header {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  opacity: 0.3;
  z-index: 0;
}

.profile-header .container {
  position: relative;
  z-index: 1;
}

/* Dashboard Header */
.dashboard-header {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.dashboard-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  opacity: 0.3;
  z-index: 0;
}

.dashboard-header .container {
  position: relative;
  z-index: 1;
}

/* Profile Navigation */
.profile-nav {
  z-index: 10;
}

/* Cards */
.card {
  border: none;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-header {
  border-radius: 0.75rem 0.75rem 0 0 !important;
  border-bottom: none;
}

/* Buttons */
.btn {
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
}

.btn-primary:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Forms */
.form-control, .form-select {
  border-radius: 0.5rem;
  border: 1px solid #e0e0e0;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.input-group-text {
  border-radius: 0.5rem 0 0 0.5rem;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-right: none;
}

.input-group .form-control {
  border-radius: 0 0.5rem 0.5rem 0;
  border-left: none;
}

/* Tables */
.table {
  border-radius: 0.5rem;
  overflow: hidden;
}

.table thead th {
  border-bottom: 2px solid var(--primary-color);
  background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.05);
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.5em 0.75em;
  border-radius: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.slide-in-up {
  animation: slideInUp 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section, .profile-header, .dashboard-header {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }
}

/* Custom utility classes */
.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Loading spinner */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* File upload */
.custom-file-upload {
  border: 2px dashed #ccc;
  display: inline-block;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 0.5rem;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
}

.custom-file-upload:hover {
  border-color: var(--primary-color);
  background-color: rgba(13, 110, 253, 0.05);
}

/* Status badges */
.status-pending {
  background-color: #ffc107;
  color: #212529;
}

.status-interview {
  background-color: #0dcaf0;
  color: #fff;
}

.status-offer {
  background-color: #198754;
  color: #fff;
}

.status-rejected {
  background-color: #dc3545;
  color: #fff;
}

.status-withdrawn {
  background-color: #6c757d;
  color: #fff;
}