@import url("inputs.css");
@import url("search.css");
@import url("stepper.css");
@import url("upload.css");
@import url("multiselect.css");
@import url("toggle-radio-checkbox.css");
@import url("range.css");
@import url("datepicker.css");
@import url("color-picker.css");
@import url("dropdown.css");
:root {
  --font-open-sans: "Open Sans", sans-serif;
  --text-6: 6px;
  --text-9: 9px;
  --text-12: 12px;
  --text-10: 10px;
  --text-40: 40px;
  --primary-color: #00a7e1;
  --light-blue: #bfe9f7;
  --background-white: #fff;
  --background-body: #c3cfe2;
  --light-gray: #ccc;
  --dark-gray: #999;
  --primary-color: #00a7e1;
  --border-error: #ff0000;
  --bg-transparent: transparent;
  --text-color: #999;
  --focus-shadow: 0 0 0 3px
    color-mix(in srgb, var(--primary-color, #00a7e1) 20%, transparent);
  --text-16: 16px;
  --border-radius: 6px;
  --padding: 10px 10px;
}

:root {
  /* Progress Bars */
  --progress-height: 8px;
  --progress-border-radius: 10px;
  --progress-bg: var(--light-gray);
  --progress-success: #10b981;
  --progress-warning: #f59e0b;
  --progress-error: #ef4444;
  
  /* Tabs */
  --tab-light-gray: var(--light-gray);
  --tab-active-border: var(--primary-color);
  --tab-hover-bg: var(--light-blue);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-open-sans);
}

body {
  background: var(--background-body);
  min-height: 100vh;
  padding: 40px 20px;
  color: #333;
}

body.dark-mode {
  --background-body: #2d3748;
  color: var(--dark-gray);
}
body.dark-mode .component-card {
  --background-white: #1a1a1a;
}
body.dark-mode .input-label {
  --background-white: #1a1a1a;
}
body.dark-mode .component-title {
  light-gray: var(--light-gray);
}
body.dark-mode .input-field {
  color: var(--dark-gray);
  background: #fff;
}
body.dark-mode .input-field::placeholder {
  color: var(--dark-gray);
}
body.dark-mode .floating-input {
  background: #fff;
}
body.dark-mode .tags-input {
  background: #fff;
}
body.dark-mode .file-upload-v2-input,
body.dark-mode .file-upload-v2 {
  background: #fff;
}
body.dark-mode .accordion-content,
body.dark-mode .accordion-header {
  background: #fff;
}
body.dark-mode .list-item {
  background: #fff;
}
body.dark-mode .tree-list .tree-header,
body.dark-mode .tree-list .tree-children {
  background: #fff;
}

/* Global custom scrollbar */
.custom-scroll-container {
  position: relative;
  overflow: hidden;
  max-height: 200px;
}

.custom-scroll-content {
  position: relative;
  width: 100%; /* Remove the padding-right */
  max-height: 200px;
  overflow: hidden;
  /* Completely hide native scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.custom-scroll-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.custom-scrollbar {
  position: absolute;
  top: 3px;
  right: 2px;
  width: 6px;
  height: calc(100% - 8px);
  background: #ccc;
  border-radius: 10px;
  opacity: 0.6;
  transition: opacity 0.3s;
  overflow: hidden;
}

.custom-scroll-container:hover .custom-scrollbar {
  opacity: 1;
}

.custom-scroll-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: #00A7E1;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  margin: -8px 0 0;
}

.custom-scroll-thumb:hover {
  background: #0088b3;
}
/**/


.container {
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 50px;
}

.header h1 {
  font-size: 2.5rem;
  color:  var(--primary-color);
  margin-bottom: 10px;
}

.header p {
  color: #7f8c8d;
  font-size: 1.1rem;
}

.components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.component-card {
  background: var(--background-white);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.component-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.component-title {
  font-size: 1.3rem;
  color: var(--dark-gray);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light-gray);
  display: flex;
  align-items: center;
  gap: 10px;
}

.component-title i {
  color: var(--primary-color);
}

/* Button Base Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

/* Normal Size */
.btn--normal {
  height: 40px;
  font-size: 16px;
  padding: 0 15px;
  display: block;
  margin: 0 0 10px;
}

/* Medium Size */
.btn--medium {
  height: 36px;
  font-size: 14px;
  padding: 0 12px;
  display: block;
  margin: 0 0 10px;
}

/* Small Size */
.btn--small {
  height: 32px;
  font-size: 12px;
  padding: 0 10px;
  display: block;
  margin: 0 0 10px;
}

/* Primary Button - Normal State */
.btn--primary {
  background: var(--primary-color);
  color: white;
}

/* Hover State */
.btn--primary:hover {
  background: #018CBD;
}

/* Focus State */
.btn--primary:focus {
  outline: none;
  light-gray: var(--primary-color);
  box-shadow: var(--focus-shadow);
}

/* Disabled State */
.btn--primary:disabled {
  background: var(--light-gray)!important;
  color: #333 !important;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Accordion Base Styles */
.accordion {
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  background: var(--background-white);
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--light-gray);
}

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

.accordion-header {
  padding: 16px 20px;
  background: var(--background-white);
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.accordion-header:hover {
  background: var(--light-blue);
}

.accordion-header:focus {
  outline: none;
  box-shadow: var(--focus-shadow);
}

.accordion-header.active {
  background: var(--light-blue);
  border-bottom: 1px solid var(--light-gray);
  color: var(--primary-color);
}

.accordion-icon {
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--background-white);
}

.accordion-content.active {
  padding: 20px;
  max-height: 1000px;
}

/* Normal List Styles */
.normal-list {
  background: var(--background-white);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  padding: 0;
  margin: 0;
  list-style: none;
  overflow: hidden;
}

.list-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--light-gray);
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

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

.list-item:hover {
  background: var(--light-blue);
}

.list-item:focus {
  outline: none;
  box-shadow: var(--focus-shadow);
}

.list-icon {
  color: var(--primary-color);
  width: 16px;
  text-align: center;
}

/* Tree List Styles */
.tree-list {
  background: var(--background-white);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  padding: 0;
  margin: 0;
  list-style: none;
  overflow: hidden;
}

.tree-item {
  padding: 0;
  border-bottom: 1px solid var(--light-gray);
}

.tree-item i:nth-child(1) {
  font-size: 8px;
  vertical-align: middle;
}
.tree-item:last-child {
  border-bottom: none;
}

.tree-header {
  padding: 12px 16px;
  background: var(--background-white);
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.tree-header:hover {
  background: var(--light-blue);
}

.tree-header:focus {
  outline: none;
  box-shadow: var(--focus-shadow);
}

.tree-icon {
  transition: transform 0.3s ease;
  color: var(--primary-color);
  width: 16px;
  text-align: center;
}

.tree-header.active .tree-icon {
  transform: rotate(90deg);
}

.tree-children {
  padding-left: 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.tree-children.active {
  max-height: 1000px;
}

.tree-child-item {
  padding: 8px 16px 8px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background-color 0.2s ease;
  font-size: 12px;
}

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

.tree-child-item:hover {
  background: var(--light-blue);
}

.child-icon {
  color: var(--text-secondary);
  width: 16px;
  text-align: center;
}

/* Progress Bar Base */
.progress-bar {
  width: 100%;
  height: var(--progress-height);
  background: var(--progress-bg);
  border-radius: var(--progress-border-radius);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: var(--progress-border-radius);
  background: var(--primary-color);
  transition: width 0.3s ease;
  position: relative;
}

/* Progress Bar Sizes */
.progress-bar--small {
  height: 4px;
}

.progress-bar--large {
  height: 12px;
}

/* Progress Bar Types */
.progress-bar--success .progress-fill {
  background: var(--progress-success);
}

.progress-bar--warning .progress-fill {
  background: var(--progress-warning);
}

.progress-bar--error .progress-fill {
  background: var(--progress-error);
}

/* Animated Progress */
.progress-bar--animated .progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 20px 20px;
  animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
  0% { background-position: 0 0; }
  100% { background-position: 20px 0; }
}

/* Progress with Label */
.progress-with-label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-label {
  font-size: 14px;
  color: var(--text-primary);
  min-width: 40px;
}

/* Circular Progress */
.progress-circular {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: conic-gradient(var(--primary-color) var(--progress-percent, 0%), var(--progress-bg) 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.progress-circular::before {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--background-white);
}

.progress-circular-value {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Horizontal Tabs */
.tabs-horizontal {
  display: flex;
  border-bottom: 1px solid var(--tab-light-gray);
  gap: 8px;
}

.tab-item {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-item:hover {
  color: var(--text-primary);
  background: var(--tab-hover-bg);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.tab-item.active {
  color: var(--primary-color);
  border-bottom-color: var(--tab-active-border);
  font-weight: 600;
}

.tab-item:focus {
  outline: none;
  box-shadow: var(--focus-shadow);
}

/* Vertical Tabs */
.tabs-vertical {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--tab-light-gray);
  gap: 4px;
  min-width: 200px;
}

.tabs-vertical .tab-item {
  border-bottom: none;
  border-right: 2px solid transparent;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  text-align: left;
  justify-content: flex-start;
}

.tabs-vertical .tab-item.active {
  border-right-color: var(--tab-active-border);
  border-bottom: none;
}

/* Tab Content */
.tab-content {
  padding: 20px;
  background: var(--background-white);
  border-radius: 0 var(--border-radius) var(--border-radius) var(--border-radius);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Tabs with Icons */
.tab-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-icon {
  font-size: 16px;
  width: 16px;
}

/* Time Picker Styles */
.svg-clock-container {
  padding: 20px;
  background: var(--background-white);
  text-align: center;
}

.svg-clock {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
}

.clock-face {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--background-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.clock-face svg {
  border-radius: 50%;
}

.clock-numbers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.clock-number {
  position: absolute;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.hour-number {
  font-size: var(--text-14);
}

.minute-number {
  font-size: var(--text-12);
}

.clock-number:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.clock-number.active {
  background: var(--primary-color);
  color: white;
  light-gray: var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,167,225,0.4);
}

.period-selector {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.period-btn {
  padding: 10px 20px;
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius);
  background: var(--background-white);
  cursor: pointer;
  font-size: var(--text-14);
  font-weight: 600;
  transition: all 0.2s ease;
  min-width: 60px;
}

.period-btn.active {
  background: var(--primary-color);
  color: white;
  light-gray: var(--primary-color);
}

.time-display {
  text-align: center;
  font-size: var(--text-20);
  font-weight: 700;
  color: var(--primary-color);
  padding: 12px;
  background: var(--light-blue);
  border-radius: var(--border-radius);
  border: 2px solid var(--primary-color);
}

/* Clock hand rotations */
.hour-hand, .minute-hand {
  transform-origin: 100px 100px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Demo Section Styles */
.demo-section {
  margin-bottom: 40px;
}

.demo-title {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 20px;
  padding-left: 10px;
  border-left: 4px solid var(--primary-color);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .components-grid {
    grid-template-columns: 1fr;
  }

  .demo-grid {
    grid-template-columns: 1fr;
  }
  .tabs-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0;
  }
  .tabs-horizontal .tab-item {
    padding: 12px 10px;
  }
  .tabs-horizontal .tab-with-icon {
    display: block;
    align-items: center;
    gap: 0;
    font-size: 12px;
  }
  .tabs-horizontal .fas.fa-user.tab-icon {
    display: block;
    margin: 0 auto;
  }
  .tabs-horizontal .tab-with-icon span {
    display: block;
    text-align: center;
  }
  .tabs-horizontal + .tab-content {
    padding: 10px 0;
  }
  .tabs-horizontal + .tab-content .tab-panel {
    font-size: 12px;
  }
  .tabs-vertical {
    min-width: auto;
  }
  .tabs-vertical + .tab-content {
    padding: 10px 10px;
    font-size: 12px;
  }
  .tabs-vertical .tab-item {
    padding: 5px 10px 5px 0;
    font-size: 12px;
  }
  .file-upload-v2-input {
    width: 100%;
  }
}
