body {
    background-color: #f8fafc;
    font-family: 'Inter', sans-serif;
    color: #334155; /* Darker for better contrast */
}
.container {
    max-width: none;
    width: 100vw;
    padding-left: 32px;
    padding-right: 32px;
}
@media (max-width: 600px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }
}
.d-flex.justify-content-between.align-items-center {
    padding: 1rem 0;
}
h2 {
    margin-bottom: 0;
    font-weight: 700;
    color: #1e293b;
}
.device-id-box {
    background: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 1.1em;
    border: 1px solid #e2e8f0;
}

/* Table Styles */
.table {
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    width: 100%;
    min-width: 1200px;
    /* overflow: hidden; Removed to prevent dropdown clipping */
}
.table thead th {
    background: #f8fafc;
    color: #64748b;
    text-align: center;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}
.table thead th:first-child {
    border-top-left-radius: 12px;
}
.table thead th:last-child {
    border-top-right-radius: 12px;
}
.table tbody td {
    vertical-align: middle;
    padding: 16px 20px;
    border-top: 1px solid #eef2f7;
    transition: background-color 0.2s ease-in-out;
}
.table-hover tbody tr:hover {
    background-color: #f8fafc;
}
.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}
.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}
.days-cell {
    font-weight: 500;
    font-size: 0.95em;
    color: #475569;
}

/* Device Selection Styles */
.device-selection-container {
    position: relative;
    min-width: 250px;
}
.device-input-box {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px;
    min-height: 42px;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease-in-out;
}
.device-input-box:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}
.add-device-placeholder {
    color: #94a3b8;
    padding-left: 5px;
}
.selected-devices {
    display: contents;
}
.device-tag {
    display: inline-flex;
    align-items: center;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 6px;
    padding: 6px 10px;
    margin: 0;
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1;
}
.device-tag .remove-device {
    color: #6366f1;
    margin-left: 8px;
    cursor: pointer;
    font-weight: normal;
    font-size: 1.1em;
    transition: color 0.2s;
}
.device-tag .remove-device:hover {
    color: #ef4444;
}
.device-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -2px rgba(0,0,0,0.05);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}
.device-option {
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
}
.device-option:last-child {
    border-bottom: none;
}
.device-option:hover {
    background: #f8fafc;
    color: #3b82f6;
}

/* Button Styles */
.btn {
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
    padding: .5rem 1rem;
}

.btn-primary {
    background-color: #4f46e5;
    border-color: #4f46e5;
}
.btn-primary:hover {
    background-color: #4338ca;
    border-color: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.btn-success {
    background-color: #10b981;
    border-color: #10b981;
}
.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
}
.edit-btn, .remove-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 3px;
    border-radius: 8px;
    border: none;
    color: #64748b;
    background-color: transparent;
}
.edit-btn:hover {
    background-color: #eef2ff;
    color: #4338ca;
}
.remove-btn:hover {
    background-color: #fee2e2;
    color: #ef4444;
}

.success-alert {
    display: none;
}

.toast-container {
    z-index: 1100; /* Ensure toast is on top of other elements */
} 