/* myspace.druzba.net/css/myspace.css */
/* Universal standard styling for MySpace Private Suite */

/* Base & Reset */
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 9.5pt;
  color: #1a1a1a;
  background: #f9f9f9;
}

/* ===== LOGIN PAGE (Glass morphism) ===== */
/* ================================================================ */
/* NOTE: Legacy login styles are DEPRECATED as of wireframe UI     */
/* New login styles are now in index_new.php <style> block         */
/* These styles are kept for reference but commented out to avoid  */
/* conflicts with the new wireframe design.                        */
/* ================================================================ */
/*
.login-body {
  background: linear-gradient(135deg, #1a3a5c 0%, #0f2c3f 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8vh;
}
.login-container {
  width: 340px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}
.login-container .login-header h1 {
  color: #fff;
  font-size: 1.6rem;
  margin: 0 0 0.5rem 0;
}
.login-container .form-group label {
  color: rgba(255,255,255,0.9);
}
.login-container .form-group input {
  background: rgba(255,255,255,0.9);
  border: none;
}
.login-container button {
  background: rgba(26, 58, 92, 0.9);
  width: 100%;
}
.login-container .login-footer,
.login-container .login-footer a {
  color: rgba(255,255,255,0.7);
}
*/

/* ===== UNIVERSAL FORM STYLES ===== */
.form-group, .form-row {
  margin-bottom: 1rem;
}
.form-group label, .form-row label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  color: #1a3a5c;
  font-size: 9pt;
}
.form-group input, .form-row input,
.form-group select, .form-row select,
.form-group textarea, .form-row textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px; /* unified radius */
  font-size: 9.5pt;
  background: #fff;
  transition: border 0.2s;
}
.form-group input:focus, .form-row input:focus,
.form-group select:focus, .form-row select:focus {
  border-color: #1a3a5c;
  outline: none;
  box-shadow: 0 0 0 2px rgba(26,58,92,0.1);
}
.help-text {
  font-size: 8pt;
  color: #666;
  margin-top: 0.2rem;
}

/* Alerts */
.alert {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 9pt;
}
.alert-danger { background: #ffebee; color: #c62828; border-left: 3px solid #c62828; }
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 3px solid #2e7d32; }
.alert-warning { background: #fff8e1; color: #f57c00; border-left: 3px solid #f57c00; }
.alert-info { background: #e3f2fd; color: #1565c0; border-left: 3px solid #1565c0; }

/* Cards */
.card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.card-title {
  font-weight: 600;
  color: #1a3a5c;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

/* Tables – scrollable */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.data-table th {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 2px solid #d0d0d0;
  color: #1a3a5c;
  background: #f0f4f8;
  font-weight: 600;
  position: sticky;
  top: 0;
}
.data-table td {
  padding: 8px;
  border-bottom: 1px solid #f0f0f0;
}
.data-table tr:hover {
  background: #f9fbfd;
}
.table-container {
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 8pt;
  font-weight: 500;
}
.status-active { background: #e8f5e9; color: #2e7d32; }
.status-inactive { background: #ffebee; color: #c62828; }
.protected-badge {
  background: #ffebee;
  color: #c62828;
  font-size: 7pt;
  padding: 2px 6px;
  border-radius: 12px;
  margin-left: 8px;
  font-weight: 500;
}

/* ===== BUTTONS – unified radius (6px) ===== */
/* Base button styles - only for generic buttons without specific classes */
button:not(.btn-standard):not(.btn-small):not(.modal-close):not(.btn-outline):not(.btn-outline-danger):not(.btn-sm):not(.scroll-btn) {
  background: #1a3a5c;
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 9.5pt;
  transition: all 0.2s ease;
}
button:not(.btn-standard):not(.btn-small):not(.modal-close):not(.btn-outline):not(.btn-outline-danger):not(.btn-sm):not(.scroll-btn):hover {
  background: #E0E9F5;
  transform: translateY(-1px);
}

/* MySpace Standard Button Styles v1.1 */
/* Normal size (on-page use) */
.btn-standard {
  display: inline-block;
  background: transparent;
  border: 1.2px solid;
  border-radius: 8px;
  padding: 0.4rem 1rem;
  font-size: 9.5pt;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s;
}
.btn-standard:hover {
  transform: translateY(-1px);
  filter: brightness(0.95);
  background: transparent;
}

/* Small size (inline / table rows) */
.btn-small {
  display: inline-block;
  background: transparent;
  border: 1px solid;
  border-radius: 5px;
  padding: 0.2rem 0.7rem;
  font-size: 8.5pt;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s;
}
.btn-small:hover {
  transform: translateY(-1px);
  background: transparent;
}

/* Color variants – straight colors, no background */
.btn-link { border-color: #2e7d32; color: #2e7d32; }
.btn-link:hover { background: rgba(46, 125, 50, 0.08); }

.btn-edit { border-color: #1565c0; color: #1565c0; }
.btn-edit:hover { background: rgba(21, 101, 192, 0.08); }

.btn-delete { border-color: #c62828; color: #c62828; }
.btn-delete:hover { background: rgba(198, 40, 40, 0.08); }

.btn-neutral { border-color: #1a3a5c; color: #1a3a5c; }
.btn-neutral:hover { background: rgba(26, 58, 92, 0.08); }

.btn-success {
  background: rgba(46, 125, 50, 0.5);
  color: #fff;
}
.btn-success:hover {
  background: rgba(46, 125, 50, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid #1a3a5c;
  color: #1a3a5c;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 9pt;
}
.btn-outline:hover {
  background: rgba(26, 58, 92, 0.08);
}

.btn-outline-danger {
  background: transparent;
  border: 1px solid #c62828;
  color: #c62828;
  padding: 0.2rem 0.8rem;
  border-radius: 6px;
  font-size: 8.5pt;
}
.btn-outline-danger:hover {
  background: rgba(198, 40, 40, 0.08);
}

.btn-sm {
  padding: 0.2rem 0.8rem;
  font-size: 8.5pt;
  border-radius: 6px;
}

.btn-danger {
  background: #c62828;
}
.btn-danger:hover {
  background: #9e1f1f;
}

/* Scroll buttons - keep their original styling */
.scroll-btn {
  background: #ddd;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 0.1rem 0.5rem;
  font-size: 9pt;
}
.scroll-btn:hover {
  background: #ccc;
  transform: none;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal {
  background: #fff;
  width: 95%;
  max-width: 550px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: modalFadeIn 0.2s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.modal-header {
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header strong {
  font-size: 1.1rem;
  color: #1a3a5c;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #666;
  padding: 0;
}
.modal-close:hover {
  background: none;
  transform: none;
  color: #333;
}
.modal-body {
  padding: 1.5rem;
}
.modal-footer {
  padding: 1rem 1.5rem;
  background: #fafafa;
  border-top: 1px solid #e0e0e0;
  text-align: right;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Utility */
.text-muted { color: #666; }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }

/* Stats cards */
.stats-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.stat-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 0.75rem 1.2rem;
  flex: 1;
  min-width: 120px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.stat-card .stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a3a5c;
  line-height: 1.2;
}
.stat-card .stat-label {
  font-size: 8.5pt;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.actions-cell {
  text-align: right;
  white-space: nowrap;
}