/**
 * iTech Notes Public Styles - Custom Design based on image
 */

:root {
    --itech-primary: #ed9716;
    --itech-primary-dark: #d98314;
    --itech-bg: #f8f9fa;
    --itech-text: #333;
    --itech-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --itech-radius: 8px;
}

body.itech-notes-page {
    background-color: var(--itech-bg);
}

.itech-notes-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Selector Screen */
.itech-notes-selector {
    background: #fff;
    padding: 40px;
    border-radius: var(--itech-radius);
    box-shadow: var(--itech-shadow);
    max-width: 500px;
    margin: 60px auto;
}

.itech-notes-selector h2 {
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    color: var(--itech-text);
    font-weight: 600;
}

.itech-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: #fff;
    margin-bottom: 20px;
}

.button-primary {
    background: var(--itech-primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    width: 100%;
    transition: background 0.3s;
}

.button-primary:hover:not(:disabled) {
    background: var(--itech-primary-dark);
}

.button-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Main Layout Styles based on Image */
.itech-notes-main-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: flex-start;
}
label {
    display: block;
    margin-bottom: 8px !important;
    color: #444;
}
.itech-notes-wrapper input, .itech-notes-wrapper select {
    width: 100%;
    padding: 12px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
}
.itech-notes-wrapper input:focus, .itech-notes-wrapper select:focus {
    outline: none;
}
/* Top Info Bar - Orange Header */
.itech-notes-top-info-wrapper {
    width: 100%;
    margin-bottom: 10px;
}
.itech-module-content h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
}
.itech-notes-top-info {
    background: var(--itech-primary);
    color: #fff;
    padding: 18px 25px;
    border-radius: 10px;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(237, 151, 22, 0.25);
}

.itech-info-text {
    font-size: 16px;
}

.itech-info-text span.sep {
    margin: 0 4px;
    opacity: 0.8;
}

.itech-change-selection {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.itech-change-selection:hover {
    background: #fff;
    color: var(--itech-primary);
}

/* Sidebar Navigation */
.itech-notes-sidebar {
    flex: 0 0 260px;
    background: #fff;
    padding: 15px;
    border-radius: var(--itech-radius);
    box-shadow: var(--itech-shadow);
}

.itech-notes-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.itech-notes-nav .nav-link {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #666;
    border-radius: 6px;
    margin-bottom: 5px;
    font-size: 17px;
    transition: all 0.2s;
}

.itech-notes-nav .nav-link:hover {
    background: #f9f9f9;
}

.itech-notes-nav .nav-link.active {
    background: var(--itech-primary);
    color: #fff;
    font-weight: 500;
}
.itech-filter-group {
    margin-bottom: 20px;
}
/* Content Area */
.itech-notes-content-area {
    flex: 1;
    background: #fff;
    padding: 25px;
    border-radius: var(--itech-radius);
    box-shadow: var(--itech-shadow);
    min-height: 400px;
}

.itech-notes-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 20px;
    color: var(--itech-primary);
    font-weight: 500;
    padding-bottom: 10px;
    border-bottom: 2px dashed var(--itech-primary);
}

.itech-content-list-container p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* Actions Row */
.itech-section-actions {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
}

.itech-download-all-pdf {
    background: #fff !important;
    color: var(--itech-primary) !important;
    border: 2px solid var(--itech-primary) !important;
    padding: 8px 20px !important;
    font-size: 15px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.itech-download-all-pdf:hover {
    background: var(--itech-primary) !important;
    color: #fff !important;
}

.itech-download-all-pdf .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Content List Items */
.itech-list-item {
    border: 1px solid #f0f0f0 !important;
    padding: 10px 15px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    background: #f9f9f9;
}
.itech-list-view {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.itech-list-item:last-child {
    border-bottom: none;
}

.itech-list-title {
    margin: 0 0 8px 0;
    font-size: 19px;
    color: #333;
}

.itech-list-description {
    color: #777;
    font-size: 14px;
    line-height: 1.5;
}

.itech-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #fff;
    color: var(--itech-primary);
    border: 1px solid var(--itech-primary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.itech-button:hover {
    background: var(--itech-primary);
    color: #fff;
}

.itech-button-video {
    border-color: #d63638;
    color: #d63638;
}

.itech-button-video:hover {
    background: #d63638;
    color: #fff;
}

/* Loading */
.itech-notes-loading {
    text-align: center;
    padding: 60px;
    color: #999;
}

.itech-notes-selector h2 {
    font-size: 22px;
}
.itech-gate-form {
    text-align: left;
}
.itech-gate-landing {
    text-align: center;
}
.itech-gate-form-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--itech-radius);
    box-shadow: var(--itech-shadow);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}
.itech-initial-loader {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.itech-initial-loader .loader-inner {
    text-align: center;
    animation: itechFadeIn 0.4s ease both;
}
.itech-initial-loader .spinner {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 3px solid #eee;
    border-top-color: var(--itech-primary);
    animation: itechSpin 1s linear infinite;
    margin: 0 auto 16px;
}
.itech-initial-loader .brand {
    font-size: 20px;
    font-weight: 600;
    color: var(--itech-primary);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.itech-initial-loader .subtitle {
    font-size: 13px;
    color: #666;
}
@keyframes itechSpin { to { transform: rotate(360deg); } }
@keyframes itechFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.itech-form-header {
    margin-bottom: 20px;
    border-bottom: 2px dashed #eee;
    padding-bottom: 5px;
}
.itech-form-title {
    font-size: 24px !important;
    font-weight: 500 !important;
    margin-bottom: 5px !important;
}
.itech-gate-btn, .itech-submit-btn {
    background: var(--itech-primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    transition: background 0.3s;
}

.itech-gate-btn:hover, .itech-submit-btn:hover {
    background: var(--itech-primary-dark) !important;
}

.itech-form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .itech-notes-main-wrapper {
        flex-direction: column;
    }
    .itech-notes-sidebar {
        flex: none;
        width: 100%;
    }
    .itech-notes-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .itech-notes-nav .nav-link {
        margin: 0;
    }
}
