/**
 * General Classes
 */
 .class-button-nested {
    margin: 0 0 4px 0;
 }
 #class-buttons-nested {
    display: none;
}
#class-dropdown-nested{
    border: 0 solid #D2DDE3;
    border-radius: 8px;
    padding: 9px 9px 9px 10px;
    background: #eef3f6;
}
#nested-class-select{
    padding: 7px 10px 5px 10px;
    border-radius: 5px;
    margin: 0 4px 0px 0px;
}

/**
 * Responsive Column System
 * Used for creating flexible multi-column layouts across the plugin
 */
*, *:before, *:after {
    box-sizing: border-box;
}

/* Column container */
.alma-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Individual column */
.alma-column {
    flex: 1;
    min-width: 150px;
}

/* Column size variants */
.alma-column.col-1-2 {
    flex-basis: calc(50% - 10px);
}

.alma-column.col-1-3 {
    flex-basis: calc(33.333% - 14px);
}

.alma-column.col-2-3 {
    flex-basis: calc(66.666% - 7px);
}

.alma-column.col-1-4 {
    flex-basis: calc(25% - 15px);
}

.alma-column.col-3-4 {
    flex-basis: calc(75% - 5px);
}

/* Column content */
.alma-column-content {
    height: 100%;
    width: 100%;
}

/* Form fields within columns */
.alma-column .field-row {
    margin: 0 0 15px 0;
}

.alma-column .field-row label {
    display: block;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.alma-column .field-row input,
.alma-column .field-row select,
.alma-column .field-row textarea {
    width: 100%;
    margin: 0 0 5px 0;
}

.alma-column .field-row .description {
    display: block;
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}

/* Responsive adjustments for columns */
@media screen and (max-width: 782px) {
    .alma-column.col-1-2,
    .alma-column.col-1-3,
    .alma-column.col-2-3,
    .alma-column.col-1-4,
    .alma-column.col-3-4 {
        flex-basis: 100%;
    }
}

/* Responsive table styles */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
}

@media screen and (max-width: 1024px) {
    .widefat,
    .alma-list-table,
    .alma-user-list-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Notice Box Styling */
.alma-notice-box {
    padding: 10px;
    margin: 10px;
    border-radius: 5px;
}

.alma-notice-box.info {
    background: #e3f0fa;
    border-left: 4px solid #218be6;
    color: #23527c;
}

.alma-notice-box.success {
    background: #e7f7ec;
    border-left: 4px solid #2bc062;
    color: #217144;
}

.alma-notice-box.error {
    background: #fff2f2;
    border-left: 4px solid #e53a3a;
    color: #b80000;
}

.alma-notice-box.warning {
    background: #fff8e6;
    border-left: 4px solid #f5a623;
    color: #8a6d3b;
}

/* Global notification container */
#alma-api-notice {
    position: fixed;
    top: 32px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
 
/**
 * Teacher Classes Function
 */
 /* Alma-Style List Table */

 /* Custom Section Heading for Alma Teacher Classes */
.alma-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    font-size: 0.85rem;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: #666;
}

/* Table Headers */
.alma-list-table thead {
    background-color: transparent;
}

.alma-list-table th {
    text-align: left;
    padding: 6px;
    font-weight: bold;
    font-size: 0.85rem;
    border-bottom: 1px solid #ddd;
    color: #c4c4c4;
}

/* Table Rows */
.alma-list-table td {
    padding: 4px 6px;
    border-bottom: 1px solid #ddd;
    color: #666;
}

/* Remove side borders */
.alma-list-table,
.alma-list-table tr,
.alma-list-table th,
.alma-list-table td {
    border-left: none;
    border-right: none;
}

/* Links inside table */
.alma-list-table td a {
    color: #838383;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
    font-size: 0.9rem;
}

.alma-list-table td a:hover {
    color: #b3b3b3;
}

/* Responsive Table for Mobile */
@media (max-width: 768px) {
    .alma-list-table th, .alma-list-table td {
        padding: 4px;
        font-size: 0.85rem;
    }
}

/* No zebra stripes */
.alma-list-table tbody tr:nth-child(odd),
.alma-list-table tbody tr:nth-child(even) {
    background-color: transparent;
}

/* Custom Section Heading for Alma Teacher Classes */
.alma-section-heading {
    font-weight: 600;
    font-size: 2rem;
    text-transform: uppercase;
    line-height: 2rem;
    color: #bbcdcf;
    margin-bottom: 10px;
    padding: 30px 0 0px 25px;
    letter-spacing: -.5px;
}
.alma-subsection-heading {
    font-weight: 600;
    font-size: 1.4rem;
    text-transform: uppercase;
    line-height: 1.4rem;
    color: #c1d2d4;
    margin-bottom: 8px;
    padding: 10px 15px 0 0px;
    letter-spacing: -.5px;
    text-align: right;
}
.alma-section-container {
    /*box-shadow: 0px 1px 5px #e3e3e3;*/
    padding: 0px;
    border-radius: 8px;
  }

 /**
  * Contact Info Function
  */
.cwb-contact-info {
    font-family: Arial, sans-serif;
    color: #333;
    margin: 20px;
}

.cwb-contact-info h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.cwb-contact-info h4 {
    font-size: 1.5rem;
    color: #34495e;
    margin-top: 15px;
}

.cwb-contact-info p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 5px 0;
}

.cwb-contact-info ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
}

.cwb-contact-info ul li {
    font-size: 1rem;
    margin: 5px 0;
}

.cwb-contact-info .error {
    color: red;
    font-weight: bold;
}

.cwb-contact-info .success {
    color: green;
    font-weight: bold;
}

.cwb-contact-info .info-section {
    margin-bottom: 20px;
}

.cwb-contact-info .info-section h4 {
    font-weight: bold;
}

.cwb-contact-info .info-section ul {
    margin-left: 20px;
}

.cwb-contact-info .info-section ul li {
    font-size: 1rem;
}

.cwb-contact-info .info-section .household-info {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-top: 10px;
}

.cwb-contact-info .info-section .household-info p {
    margin: 5px 0;
}

.cwb-contact-info .info-section .household-info ul li {
    margin: 5px 0;
    font-size: 1rem;
}

/**
 * Alma-User Data Styling
 */
.alma-user-list-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  font-size: 0.85rem;
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: #666;
}

/* Table Headers */
.alma-user-list-table thead {
    background-color: transparent;
}

.alma-user-list-table th {
    text-align: left;
    padding: 6px;
    font-weight: bold;
    font-size: 0.85rem;
    border-bottom: 1px solid #ddd;
    color: #c4c4c4;
}

/* Table Rows */
.alma-user-list-table td {
    padding: 4px 6px;
    border-bottom: 1px solid #ddd;
    color: #666;
}

/* Remove side borders */
.alma-user-list-table,
.alma-user-list-table tr,
.alma-user-list-table th,
.alma-user-list-table td {
    border-left: none;
    border-right: none;
}

/* Links inside table */
.alma-user-list-table td a {
    color: #838383;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
    font-size: 0.9rem;
}

.alma-user-list-table td a:hover {
    color: #b3b3b3;
}

/* Responsive Table for Mobile */
@media (max-width: 768px) {
    .alma-user-list-table th, .alma-user-list-table td {
        padding: 4px;
        font-size: 0.85rem;
    }
}

/* No zebra stripes */
.alma-user-list-table tbody tr:nth-child(odd),
.alma-user-list-table tbody tr:nth-child(even) {
    background-color: transparent;
}

/* Custom Section Heading for Alma User Data */
.alma-user-section-heading {
    font-weight: 600;
    font-size: 2rem;
    text-transform: uppercase;
    line-height: 2rem;
    color: #bbcdcf;
    margin-bottom: 10px;
    padding: 30px 0 0px 25px;
    letter-spacing: -.5px;
}

/* Custom Subsection Heading */
.alma-user-subsection-heading {
    font-weight: 600;
    font-size: 1.4rem;
    text-transform: uppercase;
    line-height: 1.4rem;
    color: #c1d2d4;
    margin-bottom: 8px;
    padding: 10px 15px 0 0px;
    letter-spacing: -.5px;
    text-align: right;
}

/* Container Styling */
.alma-user-section-container {
  /*box-shadow: 1px 3px 5px #e3e3e3;*/
  padding: 0px;
  border-radius: 8px;
}

/* Debug Section */
.alma-debug-section {
   display: none;
   background-color: #f8f8f8;
   border: 1px solid #ddd;
   padding: 10px;
   margin: 15px 0;
   border-radius: 4px;
   font-family: monospace;
   white-space: pre-wrap;
  }


    