.pm-teacher-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    padding: 20px;
    margin: 0;
}

.pm-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pm-header {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pm-header h1 {
    margin: 0 0 10px;
    color: #333;
}

.pm-header p {
    margin: 0;
    color: #666;
}

.pm-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pm-section h2 {
    margin: 0 0 20px;
    color: #333;
    font-size: 22px;
}

.pm-availability-form {
    max-width: 100%;
}

.pm-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.pm-form-group {
    display: flex;
    flex-direction: column;
}

.pm-form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.pm-form-group input,
.pm-form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.pm-button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.pm-button-primary {
    background: #007bff;
    color: #fff;
}

.pm-button-primary:hover {
    background: #0056b3;
}

.pm-table {
    width: 100%;
    border-collapse: collapse;
}

.pm-table th,
.pm-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.pm-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.pm-footer {
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pm-notice {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.pm-notice-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pm-notice-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pm-button-small {
    padding: 6px 12px;
    font-size: 13px;
}

.pm-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.pm-badge-visible {
    background: #d4edda;
    color: #155724;
}

.pm-badge-hidden {
    background: #f8d7da;
    color: #721c24;
}

@media (max-width: 768px) {
    .pm-form-row {
        grid-template-columns: 1fr;
    }
}

.pm-button-small {
    padding: 6px 12px;
    font-size: 14px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

.pm-button-small:hover {
    background: #0056b3;
    color: #fff;
}

.pm-message-preview {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.pm-message-content {
    padding: 15px;
    background: #fff;
    border-radius: 4px;
    margin-top: 10px;
}

.pm-help-text {
    background: #fff3cd;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #ffc107;
    margin-bottom: 20px;
}

.pm-slots-grid {
    margin-top: 20px;
}

.pm-day-slots {
    margin-bottom: 30px;
}

.pm-day-title {
    margin: 0 0 15px;
    color: #333;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.pm-slots-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.pm-slot-item {
    padding: 15px 10px;
    background: #fff;
    border: 2px solid #28a745;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pm-slot-item:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pm-slot-time {
    font-weight: 700;
    font-size: 16px;
    color: #333;
}

.pm-slot-status-label {
    font-size: 12px;
    color: #666;
}

.pm-slot-booked {
    background: #f8d7da;
    border-color: #dc3545;
    cursor: not-allowed;
    opacity: 0.6;
}

.pm-slot-hidden {
    background: #e9ecef;
    border-color: #6c757d;
}

.pm-slot-hidden .pm-slot-status-label {
    color: #6c757d;
}

/* Author: Tobalt — https://tobalt.lt */
/* Button variants for edit/delete actions */
.pm-button-secondary {
    background: #6c757d;
    color: #fff;
    margin-left: 8px;
}

.pm-button-secondary:hover {
    background: #545b62;
}

.pm-button-danger {
    background: #dc3545;
    color: #fff;
    margin-left: 8px;
}

.pm-button-danger:hover {
    background: #c82333;
}

.pm-notice-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.pm-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.pm-form-actions .pm-button {
    display: inline-block;
}
