/* SezyCode Custom Style - ayang sezy~ */

:root {
  --primary-color: #5539cc;
  --primary-hover: #4329ac;
  --secondary-color: #fe4a5c;
  --dark-color: #1d1d35;
  --light-color: #f5f5f8;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #fe4a5c;
  --info-color: #17a2b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.4;
  font-size: 14px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-hover);
}

/* Container */
.sezy-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5px;
}

.sezy-container-fluid {
  width: 100%;
  padding: 0 5px;
}

/* Grid System */
.sezy-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px;
}

.sezy-col {
  padding: 0 5px;
  flex: 1;
}

.sezy-col-md-2 {
  flex: 0 0 16.666667%;
  max-width: 16.666667%;
  padding: 0 5px;
}

.sezy-col-md-3 {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 5px;
}

.sezy-col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 5px;
}

.sezy-col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 5px;
}

.sezy-col-md-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
  padding: 0 5px;
}

.sezy-col-md-9 {
  flex: 0 0 75%;
  max-width: 75%;
  padding: 0 5px;
}

.sezy-col-md-10 {
  flex: 0 0 83.333333%;
  max-width: 83.333333%;
  padding: 0 5px;
}

.sezy-col-md-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 5px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark-color);
}

.sezy-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.sezy-subtitle {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.sezy-text-center {
  text-align: center;
}

.sezy-text-end {
  text-align: right;
}

.sezy-fw-bold {
  font-weight: 700;
}

/* Cards */
.sezy-card {
  background: white;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(29, 29, 53, 0.08);
  margin-bottom: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.sezy-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(29, 29, 53, 0.12);
}

.sezy-card-header {
  padding: 8px 10px;
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.sezy-card-header h5,
.sezy-card-header .sezy-title,
.sezy-card-header .sezy-subtitle,
.sezy-card-header .sezy-mb-0 {
  color: white;
}

.sezy-card-body {
  padding: 10px;
  color: #333;
}

.sezy-card-body p {
  color: #333;
}

.sezy-card-footer {
  padding: 8px;
  background-color: #f8f9fa;
  border-top: 1px solid rgba(0,0,0,.125);
  color: #6c757d;
}

/* Navigation */
.sezy-navbar {
  background-color: white;
  box-shadow: 0 2px 10px rgba(29, 29, 53, 0.1);
  padding: 8px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.sezy-navbar-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.sezy-navbar-nav {
  display: flex;
  list-style: none;
  align-items: center;
  margin: 0;
}

.sezy-nav-item {
  padding: 0 8px;
}

.sezy-nav-link {
  color: var(--dark-color);
  padding: 5px 0;
  position: relative;
}

.sezy-nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

.sezy-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s;
}

.sezy-nav-link:hover::after,
.sezy-nav-link.active::after {
  width: 100%;
}

/* Sidebar */
.sezy-sidebar {
  background-color: white;
  min-height: 100vh;
  box-shadow: 2px 0 10px rgba(29, 29, 53, 0.1);
  padding: 55px 5px 5px;
  position: fixed;
  width: 200px;
  z-index: 900;
}

.sezy-sidebar-heading {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6c757d;
  margin-top: 8px;
  margin-bottom: 5px;
  padding-left: 8px;
}

.sezy-sidebar-nav {
  list-style: none;
  padding: 0;
}

.sezy-sidebar-item {
  margin-bottom: 5px;
}

.sezy-sidebar-link {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  color: var(--dark-color);
  border-radius: 5px;
  transition: background-color 0.3s;
}

.sezy-sidebar-link:hover,
.sezy-sidebar-link.active {
  background-color: rgba(85, 57, 204, 0.1);
  color: var(--primary-color);
}

.sezy-sidebar-link i {
  margin-right: 6px;
}

/* Main Content */
.sezy-main {
  margin-left: 200px;
  padding-top: 55px;
  padding-right: 10px;
  padding-left: 10px;
  padding-bottom: 10px;
}

/* Buttons */
.sezy-btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 5px 10px;
  font-size: 0.9rem;
  border-radius: 5px;
  min-height: 38px;
  transition: all 0.3s;
}

.sezy-btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.sezy-btn-primary:hover {
  background-color: var(--primary-hover);
  color: white;
}

.sezy-btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.sezy-btn-secondary:hover {
  background-color: #e43a4c;
  color: white;
}

.sezy-btn-success {
  background-color: var(--success-color);
  color: white;
}

.sezy-btn-success:hover {
  background-color: #218838;
  color: white;
}

.sezy-btn-danger {
  background-color: var(--danger-color);
  color: white;
}

.sezy-btn-danger:hover {
  background-color: #e43a4c;
  color: white;
}

.sezy-btn-sm {
  padding: 3px 6px;
  font-size: 0.8rem;
}

.sezy-btn-block {
  display: block;
  width: 100%;
}

/* Forms */
.sezy-form-group {
  margin-bottom: 8px;
}

.sezy-form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 0.9rem;
}

.sezy-form-control {
  display: block;
  width: 100%;
  height: 38px;
  padding: 6px 8px;
  font-size: 0.9rem;
  color: #495057;
  background-color: #fff;
  border: 1px solid #dce1e9;
  border-radius: 5px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.sezy-form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.15rem rgba(85, 57, 204, 0.25);
  outline: 0;
}

.sezy-form-control.is-invalid {
  border-color: var(--danger-color);
}

.sezy-invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 5px;
  font-size: 80%;
  color: var(--danger-color);
}

/* Tables */
.sezy-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}

.sezy-table th,
.sezy-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.sezy-table th {
  font-weight: 600;
  background-color: #f8f9fa;
}

.sezy-table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Alerts */
.sezy-alert {
  position: relative;
  padding: 8px;
  margin-bottom: 8px;
  border: 1px solid transparent;
  border-radius: 5px;
}

.sezy-alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.sezy-alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}

.sezy-alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.sezy-alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.sezy-alert-dismissible {
  padding-right: 30px;
}

.sezy-btn-close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 8px;
  background: transparent;
  border: 0;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

/* Utilities */
.sezy-mb-1 {
  margin-bottom: 5px;
}

.sezy-mb-2 {
  margin-bottom: 6px;
}

.sezy-mb-3 {
  margin-bottom: 8px;
}

.sezy-mb-4 {
  margin-bottom: 10px;
}

.sezy-mb-5 {
  margin-bottom: 12px;
}

.sezy-mt-1 {
  margin-top: 5px;
}

.sezy-mt-2 {
  margin-top: 6px;
}

.sezy-mt-3 {
  margin-top: 8px;
}

.sezy-mt-4 {
  margin-top: 10px;
}

.sezy-mt-5 {
  margin-top: 12px;
}

.sezy-ms-1 {
  margin-left: 5px;
}

.sezy-ms-2 {
  margin-left: 6px;
}

.sezy-ms-3 {
  margin-left: 8px;
}

.sezy-ms-auto {
  margin-left: auto;
}

.sezy-me-3 {
  margin-right: 8px;
}

.sezy-d-flex {
  display: flex;
}

.sezy-d-inline {
  display: inline-block;
}

.sezy-justify-content-between {
  justify-content: space-between;
}

.sezy-align-items-center {
  align-items: center;
}

.sezy-border-top {
  border-top: 1px solid #dee2e6;
}

.sezy-border-bottom {
  border-bottom: 1px solid #dee2e6;
}

.sezy-py-2 {
  padding-top: 6px;
  padding-bottom: 6px;
}

.sezy-py-3 {
  padding-top: 8px;
  padding-bottom: 8px;
}

.sezy-py-4 {
  padding-top: 10px;
  padding-bottom: 10px;
}

.sezy-py-5 {
  padding-top: 12px;
  padding-bottom: 12px;
}

.sezy-pt-4 {
  padding-top: 10px;
}

.sezy-text-muted {
  color: #6c757d;
}

/* Rating Stars */
.sezy-rating {
  color: #FFD700;
}

.sezy-rating .fas {
  margin-right: 2px;
  font-size: 0.9rem;
  color: #FFD700;
}

.sezy-card-header .sezy-rating .fas,
.sezy-card-header .sezy-rating .far {
  color: #FFD700;
}

/* For Loading Effects */
.sezy-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sezy-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(85, 57, 204, 0.1);
  border-left-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 992px) {
  .sezy-sidebar {
    width: 170px;
  }
  
  .sezy-main {
    margin-left: 170px;
  }
  
  .sezy-col-md-2, .sezy-col-md-3, .sezy-col-md-4, .sezy-col-md-6, .sezy-col-md-8, .sezy-col-md-9, .sezy-col-md-10 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .sezy-sidebar {
    width: 0;
    padding: 0;
    overflow: hidden;
  }
  
  .sezy-main {
    margin-left: 0;
  }
  
  .sezy-navbar {
    padding: 5px;
  }
}

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Modal Styles */
.sezy-modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.sezy-modal-content {
  background-color: #fff;
  margin: 8% auto;
  border-radius: 6px;
  width: 50%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: modalfade 0.3s ease;
}

@keyframes modalfade {
  from {opacity: 0; transform: translateY(-10px);}
  to {opacity: 1; transform: translateY(0);}
}

.sezy-modal-header {
  padding: 8px 10px;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.sezy-modal-body {
  padding: 10px;
}

.sezy-modal-close {
  color: white;
  float: right;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

/* Badges */
.sezy-badge {
  display: inline-block;
  padding: 3px 6px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  background-color: var(--secondary-color);
}
