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

/* Profile sections - Wikipedia Style */
.profile-section {
    background: white;
    border: 1px solid #a7d7f9;
    margin-bottom: 1.5rem;
    overflow: visible;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #a7d7f9;
    cursor: pointer;
}

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

.section-title-group h2 {
    margin: 0 0 0.25rem 0;
    color: #000000;
    font-size: 1rem;
    font-weight: 600;
    font-family: "Linux Libertine", Georgia, Times, serif;
}

.section-description {
    color: #54595d;
    font-size: 0.8125rem;
}

.section-toggle {
    font-size: 1rem;
    color: #54595d;
}

.section-header[aria-expanded="false"] .section-toggle {
    transform: none;
}

.section-content {
    padding: 1rem;
}

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

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

.subsection-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #000000;
    font-size: 0.875rem;
    font-weight: 600;
}

.subsection-icon {
    display: none;
}

.item-count {
    font-size: 0.75rem;
    color: #54595d;
    font-weight: normal;
}

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

.item {
    background: #ffffff;
    border: 1px solid #a7d7f9;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    position: relative;
}

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

.item-title {
    margin: 0 0 0.25rem 0;
    color: #000000;
    font-size: 0.875rem;
    font-weight: 600;
}

.item-description {
    margin: 0 0 0.25rem 0;
    color: #54595d;
    line-height: 1.5;
    font-size: 0.8125rem;
}

.item-url {
    display: inline-block;
    color: #0645ad;
    text-decoration: underline;
    font-size: 0.8125rem;
    word-break: break-all;
}

.item-url:visited {
    color: #0b0080;
}

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

.remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #f8f9fa;
    color: #e02424;
    border: 1px solid #e02424;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.no-items {
    text-align: center;
    padding: 1.5rem;
    color: #54595d;
    background: #f8f9fa;
    border: 1px dashed #a7d7f9;
    font-size: 0.875rem;
}

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

.form-title {
    margin: 0 0 0.75rem 0;
    color: #000000;
    font-size: 0.875rem;
    font-weight: 600;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 400;
    color: #000000;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: none;
    border-bottom: 1px solid #000000;
    font-size: 0.875rem;
    background: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom: 2px solid #000000;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
    border: 1px solid #a7d7f9;
    padding: 0.5rem;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #54595d;
    font-size: 0.8125rem;
}

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

/* User info section */
.user-info {
    background: #f8f9fa;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #183661;
}

.user-info h2 {
    margin: 0 0 0.5rem 0;
    color: #000000;
    font-size: 1.25rem;
    font-weight: 400;
    font-family: "Linux Libertine", Georgia, Times, serif;
}

.user-info .meta {
    color: #54595d;
    font-size: 0.875rem;
}

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

/* Parent management extracted layout */
.pm-surface{
    background: #f8f9fa;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #a7d7f9;
}
.pm-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
}
.pm-title{
    color:#000000;
    margin:0;
    display:flex;
    align-items:center;
    gap:0.5rem;
    font-size:0.875rem;
    font-weight:600;
}
.pm-subtitle{color:#54595d;font-weight:400;font-size:0.8125rem}
.pm-actions{display:flex;gap:0.5rem;flex-wrap:wrap}
.pm-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:0.75rem;
    margin-top:0.75rem;
}
.pm-card{padding:0.875rem;border:1px solid #a7d7f9;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;
    }
}