.narrow-alert.swal2-popup {
    width: 300px;
    padding: 20px;
    background-color: #f0f8ff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.narrow-alert.swal2-title {
    font-size: 1.2em;
    color: #333;
    font-weight: 500;
}

.narrow-alert .swal2-loader{
    width: 40px;
    height: 40px;
}
    .form-control {
    border-radius: 10px;
    border: 2px solid #ddd;
    padding: 20px;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    min-height: 100px; /* Adjust as needed */
    resize: vertical; /* Allow vertical resizing */
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
}
    .card {
        border-radius: 15px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        padding: 20px;
        background-color:white;
    }
.card-body{
    padding: 20px; 
}
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    }

    .card-header {
        border-radius: 15px 15px 0 0;
        padding: 25px;
        transition: background-color 0.3s ease;
    }

    .card-header:hover {
        background-color: #0069d9;
    }

    .form-group label {
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
        display: block;
    }

    .form-control {
        border-radius: 10px;
        border: 2px solid #ddd;
        padding: 15px;
        transition: border-color 0.3s ease;
    }

    .form-control:focus {
        border-color: #007bff;
        outline: none;
    }

    .btn-success {
        border-radius: 10px;
        padding: 15px 30px;
        font-weight: 600;
        transition: background-color 0.3s ease, transform 0.2s ease;
        cursor: pointer;
    }

    .btn-success:hover {
        background-color: #218838;
        transform: scale(1.05);
    }

    #response {
        border: 2px solid #eee;
        padding: 20px;
        border-radius: 10px;
        background-color: #f9f9f9;
        transition: background-color 0.3s ease, border-color 0.3s ease;
    }

    #response:hover {
        background-color: #f0f0f0;
        border-color: #ddd;
    }
    #smsForm {
margin:10px;
    }

    #patientTable, #messageTable {
      border-collapse: collapse;
      width: 100%;
    }

    #patientTable th, #patientTable td, #messageTable th, #messageTable td {
      border: 1px solid #ddd;
      padding: 8px;
    }

    /* Highlight table header */
    #patientTable th, #messageTable th {
      background-color: #f2f2f2;
      font-weight: bold;
    }

    /* Stripe alternate rows */
    #patientTable tr:nth-child(even), #messageTable tr:nth-child(even) {
      background-color: #f9f9f9;
    }

    /* Hover effect on rows */
    #patientTable tbody tr:hover, #messageTable tbody tr:hover {
      background-color: #e9e9e9;
    }

    /* Button styling */
    .copy-message-btn, .copy-contacts-btn, #selectAllMembersButton, #sendSMSButton {
      background-color: #4CAF50; /* Green */
      border: none;
      color: white;
      padding: 8px 16px;
      text-align: center;
      text-decoration: none;
      display: inline-block;
      font-size: 14px;
      margin: 4px 2px;
      cursor: pointer;
      border-radius: 4px;
    }

    .copy-message-btn:hover, .copy-contacts-btn:hover, #selectAllMembersButton:hover, #sendSMSButton:hover {
      background-color: #45a049;
    }

    /* Add icons to buttons */
    #selectAllMembersButton {
      margin-top: 10px; /* Add some space above the button */
    }

    #sendSMSButton i, #selectAllMembersButton i {
      margin-right: 5px;
    }

    .sms-info-container {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: sans-serif;
}

.sms-info-item {
    text-align: center;
}

.sms-info-item h3 {
    margin-bottom: 5px;
    font-size: 1.2em;
}

.balance-amount {
    font-size: 1.5em;
    font-weight: bold;
    color: #007bff; /* Blue color for balance */
}

.sms-cost {
    font-size: 1.5em;
    font-weight: bold;
    color: #28a745; /* Green color for cost */
}

.sms-messages {
    font-size: 1.5em;
    font-weight: bold;
    color: #dc3545; /* Red color for messages */
}

  #student_allocation2 {
    display: none;
    position: fixed;
    top: 90px;
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust for the element's width */
    background-color: #FFFFFF;
    z-index: 20;
    overflow: auto;
    padding: 20px;
    width: 90%; /* Cover 80% of the screen horizontally */
    max-width: 1300px; /* Limit width for better readability */
    height: 95%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) { 

    #student_allocation2 {
        position: relative;
        top: 0; /* Changed to 0 to take full screen */
        left: 50%; /* Center horizontally */
        transform: translateX(-50%); /* Adjust for the element's width */   
        background-color: #F7F9FB;
        overflow: auto;
        padding: 1px;
        width: 100%;
        margin: 0px; /* changed margin to 0 */
        height: 100%; /* Changed to 100% to take full screen */
        border-radius: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;    
    }
}