/* Teacher Profile Styles - Extracted from inline styles */

/* Profile sections */
.profile-section {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.section-header:hover {
    background: #e9ecef;
}

.section-title-group h2 {
    margin: 0 0 0.5rem 0;
    color: #183661;
    font-size: 1.3rem;
}

.section-description {
    color: #6c757d;
    font-size: 0.9rem;
}

.section-toggle {
    font-size: 1.2rem;
    color: #6c757d;
    transition: transform 0.2s ease;
}

.section-header[aria-expanded="false"] .section-toggle {
    transform: rotate(-90deg);
}

.section-content {
    padding: 1.5rem;
}

/* Subsections */
.subsection {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.subsection:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.subsection-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.1rem;
}

.subsection-icon {
    font-size: 1.2rem;
}

.item-count {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: normal;
}

/* Items */
.items-container {
    margin-bottom: 1rem;
}

.item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.item:last-child {
    margin-bottom: 0;
}

.item-title {
    margin: 0 0 0.5rem 0;
    color: #183661;
    font-size: 1rem;
}

.item-description {
    margin: 0 0 0.5rem 0;
    color: #6c757d;
    line-height: 1.4;
}

.item-url {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    word-break: break-all;
}

.item-url:hover {
    text-decoration: underline;
}

.remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: #c82333;
}

.no-items {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
}

/* Add forms */
.add-form {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.form-title {
    margin: 0 0 1rem 0;
    color: #183661;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.form-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* User info section */
.user-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #dee2e6;
}

.user-info h2 {
    margin: 0 0 0.5rem 0;
    color: #183661;
}

.user-info .meta {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Parent management section */
.parent-management .card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
}

/* Parent management extracted layout */
.pm-surface{
    background: linear-gradient(135deg,#f8f9fa 0%,#e9ecef 100%);
    padding:20px;
    border-radius:12px;
    margin-bottom:30px;
    border:1px solid #dee2e6;
}
.pm-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
}
.pm-title{
    color:#183661;
    margin:0;
    display:flex;
    align-items:center;
    gap:10px;
}
.pm-subtitle{color:#6c757d;font-weight:400}
.pm-actions{display:flex;gap:8px;flex-wrap:wrap}
.pm-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:12px;
    margin-top:12px;
}
.pm-card{padding:14px;border-radius:8px;border:1px solid #e9ecef;background:#ffffff}

/* Responsive design */
@media (max-width: 768px) {
    .section-header {
        padding: 1rem;
    }
    
    .section-content {
        padding: 1rem;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .form-buttons .btn {
        width: 100%;
    }
}

/* Button styles specific to teacher profile */
.btn-small {
    font-size: 0.8rem;
    padding: 8px 16px;
    min-height: auto;
}

/* Navigation styles */
.profile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.profile-nav nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .profile-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .profile-nav nav {
        justify-content: center;
    }
}