/* Account Page Styles */
.customer-account-page {
    max-width: 100%;
    margin: 2em 0;
}

.customer-files-filters label {
    display: inline-block;
    margin-right: 1em;
    margin-bottom: 0.5em;
}

.customer-files-filters select {
    padding: 0.5em;
    margin-right: 1em;
}

.customer-files-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
}

.customer-files-table th,
.customer-files-table td {
    padding: 0.75em 1em;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.customer-files-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.no-files-notice {
    padding: 1em;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

/* Auth Form Styles */
.custom-auth-form {
    max-width: 400px;
    margin: 2em auto;
    padding: 2em;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.custom-auth-form .form-group {
    margin-bottom: 1.5em;
}

.custom-auth-form label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.custom-auth-form input[type="text"],
.custom-auth-form input[type="password"],
.custom-auth-form input[type="email"] {
    width: 100%;
    padding: 0.75em;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.custom-auth-form button {
    width: 100%;
    padding: 0.75em;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.custom-auth-form button:hover {
    background: #005177;
}

.custom-auth-error {
    padding: 1em;
    margin-bottom: 1.5em;
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.custom-auth-message {
    padding: 1em;
    margin-bottom: 1.5em;
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.form-links {
    margin-top: 1.5em;
    text-align: center;
}

.form-links a {
    color: #0073aa;
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}

.remember label {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-weight: normal;
    cursor: pointer;
}

/* Pagination Styles */
.customer-files-pagination {
    margin: 20px 0;
    text-align: center;
}

.customer-files-pagination a,
.customer-files-pagination span {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    text-decoration: none;
}

.customer-files-pagination .current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.customer-files-pagination a:hover {
    background: #ddd;
}

.customer-files-count {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
}


.rwd-table {
  margin: auto;
  min-width: 300px;
  max-width: 100%;
  border-collapse: collapse;
}

.rwd-table tr:first-child {
    border-top: none;
    background: #DEE0FF;
    color: #010ED0;
}

.rwd-table tr:first-child th {
  color:#010ED0;
}
.rwd-table tr {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  background-color: #f5f9fc;
}

.rwd-table tr:nth-child(odd):not(:first-child) {
  background-color: #ebf3f9;
}

.rwd-table th {
  display: none;
}

.rwd-table td {
  display: block;
}

.rwd-table td:first-child {
  margin-top: .5em;
}

.rwd-table td:last-child {
  margin-bottom: .5em;
}

.rwd-table td[data-th="Download"] {
  text-align: right;
}

.rwd-table td:before {
  content: attr(data-th) ": ";
  font-weight: bold;
  width: 120px;
  display: inline-block;
  color: #000;
}

.rwd-table th,
.rwd-table td {
  text-align: left;
}

.rwd-table {
    color: #333;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.rwd-table tr {
  border-color: #bfbfbf;
}

.rwd-table tr td {
  font-size:14px;
}
.rwd-table tr td[data-th="Filename"] {
  font-weight: 600;
  font-size:14px;
}

.rwd-table th,
.rwd-table td {
  padding: .5em 1em;
}

.customer-files-filters button {
  border:0;

}

.customer-files-filters form {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ccc;
  padding-bottom: 20px;
  margin-bottom: 40px;
}

.filters select {
  width: 200px;
}

.filters {
  display: flex;
  gap: 20px;
  align-items: center;
}
.filters label {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cff-wrap {
  background: #fff;
    padding: 40px;
    border-radius: 4px;
}

.elementor a.atodboard {
    border: 1px solid var(--vamtam-accent-color-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--vamtam-accent-color-1);
    font-weight: 600;
    border-radius: 4px;
    padding: 10px 20px;
}

.elementor a.atodboard:hover {
    background:var(--vamtam-accent-color-1);
    color:#fff;
}


@media screen and (max-width: 601px) {
  .rwd-table tr:nth-child(2) {
    border-top: none;
  }
}
@media screen and (min-width: 600px) {
  .rwd-table tr:hover:not(:first-child) {
    background-color: #d8e7f3;
  }
  .rwd-table td:before {
    display: none;
  }
  .rwd-table th,
  .rwd-table td {
    display: table-cell;
    padding: .25em .5em;
  }
  .rwd-table th:first-child,
  .rwd-table td:first-child {
    padding-left: 0;
  }
  .rwd-table th:last-child,
  .rwd-table td:last-child {
    padding-right: 0;
  }
  .rwd-table th,
  .rwd-table td {
    padding: 1em !important;
  }
}


/* THE END OF THE IMPORTANT STUFF */

/* Basic Styling */
body {
background: #4B79A1;
background: -webkit-linear-gradient(to left, #4B79A1 , #283E51);
background: linear-gradient(to left, #4B79A1 , #283E51);        
}
h1 {
  text-align: center;
  font-size: 2.4em;
  color: #f2f2f2;
}
.container {
  display: block;
  text-align: center;
}
h3 {
  display: inline-block;
  position: relative;
  text-align: center;
  font-size: 1.5em;
  color: #cecece;
}
h3:before {
  content: "\25C0";
  position: absolute;
  left: -50px;
  -webkit-animation: leftRight 2s linear infinite;
  animation: leftRight 2s linear infinite;
}
h3:after {
  content: "\25b6";
  position: absolute;
  right: -50px;
  -webkit-animation: leftRight 2s linear infinite reverse;
  animation: leftRight 2s linear infinite reverse;
}
@-webkit-keyframes leftRight {
  0%    { -webkit-transform: translateX(0)}
  25%   { -webkit-transform: translateX(-10px)}
  75%   { -webkit-transform: translateX(10px)}
  100%  { -webkit-transform: translateX(0)}
}
@keyframes leftRight {
  0%    { transform: translateX(0)}
  25%   { transform: translateX(-10px)}
  75%   { transform: translateX(10px)}
  100%  { transform: translateX(0)}
}


/* Responsive styles */
@media (max-width: 768px) {
    .customer-files-filters label {
        display: block;
        margin-right: 0;
        margin-bottom: 1em;
    }
    
    .customer-files-filters select {
        display: block;
        width: 100%;
        margin-bottom: 1em;
    }
    
    .customer-files-table {
        display: block;
        overflow-x: auto;
    }
}


/* === Customer Files — Frontend === */
.cf-frontend { margin: 8px 0 24px; }
.cf-title{ font-size:22px; font-weight:700; margin-bottom:10px; color:#111827; }

/* Filters */
.cff-filters{
  display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end;
  background:#fff; border:1px solid #e5e7eb; border-radius:14px; padding:12px; margin-bottom:14px;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}
.cff-field label{ display:block; font-weight:600; font-size:12px; color:#374151; margin-bottom:4px; }
.cff-field select{ min-width:160px; }
.cff-actions{ display:flex; gap:8px; margin-left:auto; }

/* List */
.cff-list{ display:flex; flex-direction:column; gap:10px; }
.cff-item{
  background:#fff; border:1px solid #e5e7eb; border-radius:14px; padding:12px 14px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
  transition:box-shadow .2s ease, transform .05s ease;
}
.cff-item:hover{ box-shadow:0 6px 18px rgba(0,0,0,.08); transform:translateY(-1px); }

.cff-main{ flex:1 1 auto; min-width:0; }
.cff-title-row{ display:flex; align-items:center; gap:8px; min-width:0; margin-bottom:6px; }
.cff-ext-pill{
  font-size:11px; font-weight:700; letter-spacing:.4px; background:#eef2ff; color:#3730a3;
  border-radius:9999px; padding:3px 8px; line-height:1;
}
.cff-filename{
  max-width: 56vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight:600; color:#111827;
}

/* Reuse admin badge palette */
.cf-badge{
  display:inline-block; background:#e8faf0; color:#166534;
  border-radius:9999px; padding:2px 8px; font-size:11px; font-weight:700;
}

.cff-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; color:#374151; }
.cff-chip{
  font-size:12px; background:#f3f4f6; border:1px solid #e5e7eb; border-radius:9999px; padding:2px 8px;
}
.cff-dot{ color:#9ca3af; }

.cff-actions{ display:flex; gap:8px; white-space:nowrap; }

/* Pagination & count */
.cff-pagination{
  display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:12px;
}
.cff-count{ color:#6b7280; font-size:12px; }

/* Empty state */
.cff-empty{
  background:#fff; border:1px dashed #d1d5db; border-radius:14px; padding:28px; text-align:center; color:#6b7280;
}
.cff-empty__icon{ font-size:28px; margin-bottom:10px; }
.cff-empty__title{ font-weight:700; color:#111827; margin-bottom:6px; }
.cff-empty__text{ font-size:13px; }

 .cf-login{max-width:520px;margin:24px auto;padding:16px;background:#fff;border:1px solid #e5e7eb;border-radius:12px}
  .cf-login h2{margin-top:0}
  .cf-form label{display:block;font-weight:600;margin-bottom:6px}
  .cf-form input[type=text],
  .cf-form input[type=password]{width:100%;padding:10px;border:1px solid #d1d5db;border-radius:8px}
  .cf-row{display:flex;align-items:center;justify-content:space-between}
  .cf-remember{display:flex;gap:8px;align-items:center}
  .cf-link{color:#2563eb;text-decoration:none}
  .cf-link:hover{text-decoration:underline}
  .cf-alert{padding:10px;border-radius:10px;margin-bottom:10px}
  .cf-alert--error{background:#fee2e2;color:#7f1d1d}
  .cf-alert--success{background:#ecfdf5;color:#065f46}


/* Responsive */
@media (max-width: 900px){ .cff-filename{ max-width: 46vw; } }
@media (max-width: 782px){
  .cff-item{ flex-direction:column; align-items:stretch; }
  .cff-actions{ justify-content:flex-end; }
  .cff-filename{ max-width: 100%; }
}
