/* ========================================
   CUSTOM STYLES FOR FORGEFILE PROJECT
   ======================================== */

/* Custom variables for project branding */
:root {
    --forgefile-primary: #6366f1;
    --forgefile-secondary: #64748b;
    --forgefile-success: #10b981;
    --forgefile-warning: #f59e0b;
    --forgefile-danger: #ef4444;
    --forgefile-info: #06b6d4;
    --forgefile-light: #f8fafc;
    --forgefile-dark: #1e293b;
}

/* Custom utility classes */
.text-forgefile-primary { color: var(--forgefile-primary) !important; }
.bg-forgefile-primary { background-color: var(--forgefile-primary) !important; }
.border-forgefile-primary { border-color: var(--forgefile-primary) !important; }

/* Custom card styles */
.card-custom {
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-in-out;
}

.card-custom:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* Custom button styles */
.btn-forgefile {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-forgefile:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Custom sidebar styles */
.sidebar-custom .sidebar-link {
    border-radius: 0.5rem;
    margin: 0.25rem 0.5rem;
    transition: all 0.2s ease-in-out;
}

.sidebar-custom .sidebar-link:hover {
    background-color: var(--forgefile-primary);
    color: white;
    transform: translateX(4px);
}

/* Custom form styles */
.form-control-custom {
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease-in-out;
}

.form-control-custom:focus {
    border-color: var(--forgefile-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Custom table styles */
.table-custom {
    border-radius: 0.75rem;
    overflow: hidden;
}

.table-custom thead th {
    background-color: var(--forgefile-light);
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
}

/* Custom modal styles */
.modal-custom .modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Custom alert styles */
.alert-custom {
    border-radius: 0.75rem;
    border: none;
    padding: 1rem 1.25rem;
}

/* Custom badge styles */
.badge-custom {
    border-radius: 0.375rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
}

/* Custom progress styles */
.progress-custom {
    border-radius: 0.5rem;
    height: 0.5rem;
}

/* Custom dropdown styles */
.dropdown-menu-custom {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Custom toast styles */
.toast-custom {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Custom file upload styles */
.file-upload-custom {
    border: 2px dashed #e2e8f0;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.file-upload-custom:hover {
    border-color: var(--forgefile-primary);
    background-color: rgba(99, 102, 241, 0.05);
}

/* Custom loading spinner */
.spinner-custom {
    width: 2rem;
    height: 2rem;
    border: 3px solid #e2e8f0;
    border-top: 3px solid var(--forgefile-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom responsive utilities */
@media (max-width: 768px) {
    .card-custom {
        margin-bottom: 1rem;
    }
    
    .sidebar-custom .sidebar-link {
        margin: 0.125rem 0.25rem;
    }
}

/* Dark mode support */
[data-bs-theme="dark"] {
    --forgefile-light: #1e293b;
    --forgefile-dark: #f8fafc;
}

/* Custom focus styles for accessibility */
.btn-forgefile:focus,
.form-control-custom:focus,
.sidebar-custom .sidebar-link:focus {
    outline: 2px solid var(--forgefile-primary);
    outline-offset: 2px;
}

/* Custom animation classes */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

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

.slide-in {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Custom utility classes for spacing */
.gap-0 { gap: 0 !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-5 { gap: 1.25rem !important; }

/* Custom text utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
} 

/* Mobile menu styles */
@media (max-width: 991.98px) {
  .left-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    z-index: 1050;
    transition: left 0.3s ease-in-out;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  }
  
  .left-sidebar.show {
    left: 0;
  }
  
  .sidebartoggler {
    display: block !important;
  }
  
  .body-wrapper {
    margin-left: 0 !important;
  }
}

@media (min-width: 992px) {
  .sidebartoggler {
    display: none !important;
  }
}

/* Sidebar toggle button styles */
.sidebartoggler {
  cursor: pointer;
  padding: 0.5rem;
  border: none;
  background: none;
  color: #6c757d;
  transition: color 0.2s ease-in-out;
}

.sidebartoggler:hover {
  color: var(--forgefile-primary);
}

/* Overlay for mobile menu */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1040;
  display: none;
}

.sidebar-overlay.show {
  display: block;
} 