/* === C-Data Theme === */
body, html { background: #f5f5f5 !important; }

/* Ascunde branding */
.tb-logo, tb-logo, .tb-logo-title,
img[src*="thingsboard"], img[src*="logo"]:not([src*="cdata"]) { display: none !important; }

/* Card alb */
mat-card, .mat-card {
  background: #ffffff !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
  border: 1px solid #eeeeee !important;
}

/* Form fields */
input.mat-mdc-input-element, input {
  color: #1a1a1a !important;
  background: transparent !important;
}
.mat-mdc-form-field-focus-overlay { background: transparent !important; }
.mdc-line-ripple::after { border-bottom-color: #00E676 !important; }
.mat-mdc-form-field.mat-focused label { color: #00C853 !important; }

/* BUTON LOGIN - clase exacte MDC */
button.mdc-button--raised,
button.mat-mdc-raised-button,
button.mat-accent,
.mdc-button--raised {
  background-color: #00E676 !important;
  color: #000000 !important;
  border-radius: 6px !important;
}
.mdc-button--raised .mdc-button__label {
  color: #000000 !important;
}

/* Override MDC ripple color */
.mat-accent .mat-mdc-button-persistent-ripple::before { background-color: #00E676 !important; }

/* Toolbar */
.mat-toolbar { background: #ffffff !important; color: #1a1a1a !important; border-bottom: 1px solid #eeeeee !important; }

/* Sidebar */
.mat-sidenav { background: #ffffff !important; border-right: 1px solid #eeeeee !important; }

/* Links */
a { color: #00C853 !important; }

/* Password si input fields vizibile */
.mdc-text-field__input,
.mat-mdc-input-element {
  color: #1a1a1a !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #1a1a1a !important;
}

/* Label fields */
.mdc-floating-label, .mat-mdc-floating-label {
  color: #888888 !important;
}
.mdc-text-field--focused .mdc-floating-label {
  color: #00C853 !important;
}

/* Linie de jos a inputului */
.mdc-line-ripple::before { border-bottom-color: #dddddd !important; }
.mdc-line-ripple::after { border-bottom-color: #00E676 !important; }

/* Iconite form */
.mat-icon { color: #888888 !important; }

/* Fix autofill Safari - uniform username si password */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #1a1a1a !important;
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Uniform toate inputurile */
input.mdc-text-field__input {
  font-size: 16px !important;
  font-family: inherit !important;
  color: #1a1a1a !important;
  -webkit-text-fill-color: #1a1a1a !important;
}

/* Card mai compact */
.mat-mdc-card, .mdc-card {
  max-height: none !important;
  min-height: unset !important;
}
tb-login-page .mat-mdc-card {
  padding-bottom: 32px !important;
}

/* Force card compact */
mat-card.mat-mdc-card,
.mdc-card.mat-mdc-card {
  padding-top: 72px !important;
  padding-bottom: 24px !important;
  max-height: none !important;
  height: auto !important;
}

/* Reduce spacing between form fields */
tb-login-page .mat-mdc-form-field {
  margin-bottom: 0 !important;
}

tb-login-page mat-form-field {
  margin-bottom: 4px !important;
}

/* Reduce internal form padding */
.layout-padding {
  padding: 8px 16px !important;
}
fieldset {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
mat-card-content, .mat-mdc-card-content {
  padding: 0 !important;
}

/* === Dashboard Interior White Label === */

/* Ascunde GitHub Star button */
a[href*="github"], .tb-github-star { display: none !important; }

/* Ascunde Switch to PE */
.tb-pe-notification, [class*="pe-notification"],
button[class*="switch-to-pe"], .switch-to-pe { display: none !important; }

/* Ascunde Connect mobile app */
.tb-mobile-app, [class*="mobile-app"] { display: none !important; }

/* Ascunde Version + Contact us card */
.tb-version, [class*="tb-version"] { display: none !important; }

/* Ascunde Switch to PE */
a.tb-switch-to-pe { display: none !important; }

/* Ascunde Version / Contact us / Functions */
.tb-version-info-container { display: none !important; }

/* Ascunde Get started */
tb-getting-started { display: none !important; }

