/* Custom CSS for Training System with Samsung Sharp Sans Font */

/* Samsung Sharp Sans Font Face Declarations */
@font-face {
    font-family: 'Samsung Sharp Sans';
    src: url('fonts/SamsungSharpSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Samsung Sharp Sans';
    src: url('fonts/SamsungSharpSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Enhanced Color Scheme with Modern Gradients */
:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #666666;
    --text-light: #888888;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
    --gradient-primary: linear-gradient(135deg, #000000 0%, #333333 100%);
    --gradient-secondary: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-small: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Font Application */
* {
    font-family: 'Samsung Sharp Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    font-family: 'Samsung Sharp Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--secondary-color);
}

/* Ensure minimum height for full viewport */
.min-vh-100 {
    min-height: 100vh;
}

/* Light header with black text */
.navbar {
    background-color: #fff !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
    min-height: 120px;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.navbar-nav .nav-link {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

.dropdown-menu {
    border: 1px solid var(--border-color);
}

/* Beautiful Button Designs */
.btn {
    font-family: 'Samsung Sharp Sans', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius-small);
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    text-transform: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.btn:hover:before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #333333 0%, #555555 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-soft);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
    box-shadow: none;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--secondary-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    border-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
}

.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger {
    border-width: 2px;
    background: transparent;
    font-weight: 600;
}

.btn-outline-secondary:hover,
.btn-outline-success:hover,
.btn-outline-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--border-radius);
    font-weight: 700;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Samsung Sharp Sans', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
      font-size: 22px;
  font-weight: 300;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

h4 {
    font-size: 1.5rem;
    font-weight: 700;
}

h5 {
    font-size: 1.25rem;
    font-weight: 700;
}

h6 {
    font-size: 1.1rem;
    font-weight: 600;
}

.lead {
    font-family: 'Samsung Sharp Sans', sans-serif;
    font-weight: 400;
    font-size: 1.125rem;
    color: var(--accent-color);
    line-height: 1.6;
}

.text-primary {
    color: var(--primary-color) !important;
}

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

/* Beautiful Form Controls */
.form-control,
.form-select {
    font-family: 'Samsung Sharp Sans', sans-serif;
    border-radius: var(--border-radius-small);
    border: 2px solid var(--border-color);
    padding: 12px 16px;
    font-size: 14px;
    transition: var(--transition);
    background: white;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    background: white;
}

.form-label {
    font-family: 'Samsung Sharp Sans', sans-serif;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 0.025em;
}

.input-group-text {
    background: var(--gradient-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-small);
    font-family: 'Samsung Sharp Sans', sans-serif;
    font-weight: 600;
}

/* Enhanced Card Designs */
.card {
    font-family: 'Samsung Sharp Sans', sans-serif;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    background: white;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: var(--gradient-secondary);
    border-bottom: 2px solid var(--border-color);
    font-weight: 700;
    color: var(--primary-color);
    padding: 20px 24px;
    font-size: 16px;
    letter-spacing: 0.025em;
}

.card-body {
    padding: 24px;
}

.card-title {
    font-family: 'Samsung Sharp Sans', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.card-text {
    font-family: 'Samsung Sharp Sans', sans-serif;
    color: var(--accent-color);
    line-height: 1.6;
}

/* Employee dashboard specific styles */
.employee-dashboard {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
    font-family: 'Samsung Sharp Sans', sans-serif;
}

.document-card {
    border: none;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.document-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.document-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.document-card:hover:before {
    width: 8px;
}

.document-status {
    font-size: 0.85rem;
    font-weight: 500;
}

.document-status.required {
    color: #dc3545;
}

.document-status.completed {
    color: #28a745;
}

/* Enhanced Progress and Sidebar Components */
.progress-sidebar {
    background: white;
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.progress-sidebar:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.progress-sidebar:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

/* Enhanced Welcome Section */
.welcome-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 32px;
    margin-bottom: 32px;
    border: none;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.welcome-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-primary);
}

.welcome-section h2 {
    font-family: 'Samsung Sharp Sans', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 2rem;
}

.welcome-section p {
    font-family: 'Samsung Sharp Sans', sans-serif;
    color: var(--accent-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.progress-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.progress-item:last-child {
    border-bottom: none;
}

.progress-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.progress-icon.pending {
    background-color: #ffc107;
    color: white;
}

.progress-icon.completed {
    background-color: #28a745;
    color: white;
}

.signature-box {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    min-height: 150px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.signature-box:hover {
    border-color: var(--primary-color);
    background: #f5f5f5;
}

.welcome-section {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.section-header i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Logo styles */
.navbar-brand img {
    height: 100px;
    width: 100px;
    margin-right: 12px;
}

.company-logo {
    border-radius: 50%;
    object-fit: cover;
}

.login-logo {
    height: 120px;
    width: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

/* PDF Viewer Styles */
#pdfViewer {
    background-color: var(--bs-gray-100);
    border-radius: 0.375rem;
}

#pdfViewer canvas {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.25rem;
    background: white;
}

/* Enhanced Progress Bars */
.progress {
    background-color: #f8f9fa;
    border-radius: 10px;
    height: 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg, #000000 0%, #333333 50%, #555555 100%);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Enhanced Alerts */
.alert {
    font-family: 'Samsung Sharp Sans', sans-serif;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    font-weight: 500;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.alert:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.alert-primary:before {
    background: var(--primary-color);
}

.alert-success:before {
    background: #28a745;
}

.alert-danger:before {
    background: #dc3545;
}

.alert-warning:before {
    background: #ffc107;
}

.alert-info:before {
    background: #17a2b8;
}

/* Enhanced Tables */
.table {
    font-family: 'Samsung Sharp Sans', sans-serif;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: white;
}

.table thead th {
    background: var(--gradient-secondary);
    border: none;
    font-weight: 700;
    color: var(--primary-color);
    padding: 16px;
    font-size: 14px;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.table tbody td {
    border: none;
    padding: 16px;
    border-bottom: 1px solid #f8f9fa;
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

.table tbody tr:hover td {
    color: var(--primary-color);
}

/* Enhanced Badges */
.badge {
    font-family: 'Samsung Sharp Sans', sans-serif;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.badge.bg-success {
  background: #00ff8a !important;
  box-shadow: none;
  color: #000;
  font-size: 10px;
}

.badge.bg-danger {
    background: ff2a00 !important;
  box-shadow: none;
  color: #fff;
  font-size: 10px;
}

.badge.bg-warning {
  background: ff2a00 !important;
  box-shadow: none;
  color: #fff;
  font-size: 10px;
}

.badge.bg-secondary {
    background: var(--gradient-secondary) !important;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* Enhanced Dropdowns */
.dropdown-menu {
    font-family: 'Samsung Sharp Sans', sans-serif;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    padding: 8px 0;
    background: white;
}

.dropdown-item {
    font-weight: 500;
    color: var(--secondary-color);
    padding: 12px 20px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--gradient-secondary);
    color: var(--primary-color);
    transform: translateX(4px);
}

.dropdown-divider {
    border-color: var(--border-color);
    margin: 4px 0;
}

/* Beautiful Footer */
.footer {
    background: var(--gradient-primary);
    color: white;
    padding: 20px 0;
    margin-top: auto;
    font-family: 'Samsung Sharp Sans', sans-serif;
    font-weight: 400;
    border-top: 4px solid var(--primary-color);
}

.footer p {
    margin: 0;
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    color: #cccccc;
    text-decoration: underline;
}

/* Ensure body takes full height for footer positioning */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Course Status Indicators */
.course-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Samsung Sharp Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.breadcrumb-item a {
  color: #000;
}
.course-status.completed {
    background: #00ff8a !important;
  box-shadow: none;
  color: #000;
  font-size: 10px;
}
.avatar-circle {
  background-color: #333 !important;}

.course-status.in-progress {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.course-status.not-started {
    background: var(--gradient-secondary);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
    border: 2px solid var(--border-color);
}
.btn.btn-secondary.btn:disabled {
  color: #ddd;
	border-color:#ddd
}

.course-status i {
    font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 60px;
        width: 60px;
    }
    
    .login-logo {
        height: 80px;
        width: 80px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        margin-bottom: 0.25rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .footer {
        padding: 15px 0;
    }
    
    .footer p {
        font-size: 12px;
    }
}