/* Buttons */
.btn-primary {
  background-color: #fba01c;
  color: #201c1d;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-primary:hover {
  background-color: #e69010;
}

.btn-new-order {
  margin-bottom: 30px;
}

/* === Dashboard Order Page === */
.order-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.order-box {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 30px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-weight: bold;
  font-size: 1.2em;
  color: #201c1d;
}

.order-status {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #fff;
  text-transform: capitalize;
}

.order-status.status-zaprimljeno {
  background: #201c1d;
}
.order-status.status-u_izradi {
  background: #fba01c;
  color: #201c1d;
}
.order-status.status-gotovo {
  background: #28a745;
}
.order-status.status-odbijeno {
  background: #dc3545;
}

.order-info p,
.order-comment-admin p,
.order-original-file p,
.order-ready-files p {
  margin: 6px 0;
  color: #201c1d;
}

.order-ready-files ul,
.order-user-comments ul {
  padding-left: 18px;
  margin: 10px 0;
}

.order-user-form {
  border-top: 1px dashed #ddd;
  margin-top: 30px;
  padding-top: 20px;
}

.order-user-form form p {
  margin-bottom: 15px;
}

.order-user-form textarea {
  width: 100%;
  height: 100px;
  padding: 8px;
  resize: vertical;
  border: 1px solid #201c1d;
  color: #201c1d;
}

.order-user-form input[type="file"] {
  margin-top: 5px;
}

.order-user-form button {
  background: #201c1d;
  color: #fba01c;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.order-user-form button:hover {
  background: #fba01c;
  color: #201c1d;
}

.order-user-comments {
  margin-top: 30px;
}

.order-user-comments li {
  border-top: 1px solid #eee;
  padding: 10px 0;
  color: #201c1d;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #ddd;
}

.orders-table th,
.orders-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  font-size: 0.95em;
  text-align: left;
  color: #201c1d;
}

.orders-table th {
  background: #fba01c;
  color: #201c1d;
  font-weight: 600;
}

.order-status {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8em;
  color: #fff;
}

.status-zaprimljeno {
  background: #201c1d;
}

.status-u_izradi {
  background: #fba01c;
  color: #201c1d;
}

.status-ready,
.status-gotovo {
  background: #28a745;
}

.status-odbijeno {
  background: #dc3545;
}

.btn-view {
  background: #201c1d;
  color: #fba01c;
  padding: 6px 10px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85em;
  border: 1px solid #fba01c;
  transition: background 0.2s, color 0.2s;
}
.btn-view:hover {
  background: #fba01c;
  color: #201c1d;
}

.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  background: #f8f9fa;
}

.dashboard-sidebar {
  width: 250px;
  background: #201c1d;
  color: #fff;
  padding: 20px;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.dashboard-sidebar .sidebar-logo {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 30px;
}

.dashboard-sidebar .sidebar-logo a {
  color: #fba01c;
}
.dashboard-sidebar .sidebar-logo a:hover {
  opacity: 0.8;
}

.dashboard-sidebar .dashboard-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-sidebar .dashboard-menu li {
  margin-bottom: 10px;
}

.dashboard-sidebar .dashboard-menu li a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.dashboard-sidebar .dashboard-menu li a:hover,
.dashboard-sidebar .dashboard-menu li.current-menu-item a {
  background: #fba01c;
  color: #201c1d;
}

.dashboard-main {
  flex: 1;
  padding: 30px;
  box-sizing: border-box;
  background: #f8f9fa;
}

/* Overlay */
#overlay-bg {
  position: fixed;
  inset: 0;
  background: rgba(32, 28, 29, 0.7);
  z-index: 999;
  display: none;
}

.order-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 60%;
  height: 100%;
  background: #fff;
  box-shadow: -3px 0 8px rgba(32, 28, 29, 0.2);
  transition: right 0.3s ease-in-out;
  z-index: 1000;
  overflow-y: auto;
}

.order-overlay.active {
  right: 0;
}

#overlay-bg.active {
  display: block;
}

.close-overlay {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #201c1d;
}

.order-form-wrapper {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 100%;
  overflow-y: auto;
}

.files-list-wrapper {
  margin-top: 30px;
}

.files-list {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(32, 28, 29, 0.05);
  background: #fff;
  overflow: hidden;
}

.files-list-header {
  background: #201c1d;
  border-bottom: 1px solid #fba01c;
  font-weight: 600;
  color: #fba01c;
  letter-spacing: 0.01em;
}

.list-row-header,
.list-row {
  display: flex;
  padding: 16px 20px;
  align-items: center;
}

.list-row {
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  color: #201c1d;
}

.list-row:hover {
  background-color: #fba01c22;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(32, 28, 29, 0.03);
}

.list-row[data-order-id]:nth-child(odd) {
  background-color: #fafbfc;
}

.list-header-item,
.list-item {
  padding: 0 12px;
}

.icon-col {
  width: 5%;
  text-align: center;
}

.name-col {
  width: 65%;
}

.date-col {
  width: 20%;
  color: #fba01c;
}

.actions-col {
  width: 10%;
  text-align: right;
}

.right {
  text-align: right;
}

.file-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-size: contain;
  transition: transform 0.2s ease;
}

/* Folder icon with yellow accent */
.file-icon.folder {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23fba01c" d="M464 128H272l-54.63-54.63c-6-6-14.14-9.37-22.63-9.37H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z"/></svg>');
}

.file-icon.folder.folder--not-empty {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23fba01c" d="M464 128H272l-54.63-54.63c-6-6-14.14-9.37-22.63-9.37H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm0 272H48V160h416v240z"/></svg>');
}

/* File icon with brown accent and yellow dot */
.file-icon.file {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><circle cx="340" cy="60" r="18" fill="%23fba01c"/><path fill="%23201c1d" d="M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"/></svg>');
}

.files-container {
  background-color: #f8fafc;
  padding: 0;
  border-bottom: 1px solid #fba01c;
  transition: all 0.3s ease;
}

.files-inner {
  padding: 20px;
}

.files-sublist {
  margin-bottom: 24px;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(32, 28, 29, 0.04);
}

.files-sublist .list-row {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.name {
  color: #201c1d;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.name:hover {
  color: #fba01c;
  text-decoration: none;
}

.name--folder {
  font-weight: 600;
  color: #201c1d;
}

h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #201c1d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.orders-header h2 {
  font-size: 22px;
  font-weight: 600;
  color: #201c1d;
  margin-bottom: 20px;
}

.files-list-date {
  color: #201c1d;
  font-size: 0.9em;
}

.date i {
  margin-right: 4px;
  opacity: 0.7;
  color: #fba01c;
}

/* Animation for collapse */
.collapse:not(.show) {
  display: none;
}

.collapse.show {
  animation: fadeIn 0.3s ease;
}

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