/* HOA Document Manager - Public Styles */

/* Password Form */
.hoa-doc-password-wrapper {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
}

.hoa-doc-password-form {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hoa-doc-password-form h3 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.hoa-doc-password-form p {
    color: #666;
    margin-bottom: 20px;
}

.hoa-doc-error {
    background: #dc3232;
    color: #fff;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.hoa-doc-error.hoa-doc-locked {
    background: #f0b849;
    color: #000;
    border-left: 4px solid #dc3232;
}

.hoa-doc-error.hoa-doc-locked strong {
    display: block;
    margin-bottom: 5px;
    color: #dc3232;
}

.hoa-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.hoa-submit-btn:disabled:hover {
    background: #ccc;
}

.hoa-password-form input[type="password"]:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}

.hoa-password-form .hoa-form-group {
    margin-bottom: 20px;
}

.hoa-password-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.hoa-password-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.hoa-password-form input[type="password"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.hoa-submit-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.hoa-submit-btn:hover {
    background: #005a87;
}

/* Document Container */
.hoa-doc-container {
    margin: 30px 0;
    position: relative;
}

.hoa-doc-logout {
    text-align: right;
    margin-bottom: 20px;
}

.hoa-logout-btn {
    background: #666;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.hoa-logout-btn:hover {
    background: #444;
}

/* Category Section */
.hoa-doc-category {
    margin-bottom: 40px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hoa-category-title {
    background: #0073aa;
    color: #fff;
    margin: 0;
    padding: 15px 20px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hoa-category-title:hover {
    background: #005a87;
}

.hoa-board-badge {
    display: inline-block;
    background: #dc3232;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hoa-category-description {
    padding: 15px 20px;
    margin: 0;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    color: #666;
    font-size: 14px;
}

/* Document List */
.hoa-doc-list {
    padding: 20px;
}

.hoa-doc-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

.hoa-doc-item:last-child {
    border-bottom: none;
}

.hoa-doc-item:hover {
    background: #f9f9f9;
}

.hoa-doc-info {
    flex: 1;
    padding-right: 20px;
}

.hoa-doc-title {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.hoa-doc-title a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hoa-doc-title a:hover {
    color: #005a87;
    text-decoration: underline;
}

.hoa-doc-description {
    color: #666;
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.6;
}

.hoa-doc-meta {
    font-size: 13px;
    color: #999;
}

.hoa-doc-meta span {
    margin-right: 20px;
}

.hoa-doc-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 100px;
}

.hoa-doc-download,
.hoa-doc-view {
    display: inline-block;
    padding: 10px 20px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hoa-doc-download {
    background: #0073aa;
    color: #fff;
}

.hoa-doc-download:hover {
    background: #005a87;
    color: #fff;
}

.hoa-doc-view {
    background: #fff;
    color: #0073aa;
    border: 1px solid #0073aa;
}

.hoa-doc-view:hover {
    background: #0073aa;
    color: #fff;
}

/* No Documents */
.hoa-doc-no-documents {
    padding: 40px;
    text-align: center;
    color: #666;
    font-size: 16px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hoa-doc-item {
        flex-direction: column;
    }

    .hoa-doc-info {
        padding-right: 0;
        margin-bottom: 15px;
    }

    .hoa-doc-actions {
        flex-direction: row;
        width: 100%;
    }

    .hoa-doc-download,
    .hoa-doc-view {
        flex: 1;
    }

    .hoa-category-title {
        font-size: 18px;
        padding: 12px 15px;
    }

    .hoa-doc-password-wrapper {
        padding: 10px;
    }

    .hoa-doc-password-form {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .hoa-doc-meta span {
        display: block;
        margin-bottom: 5px;
    }

    .hoa-doc-title {
        font-size: 16px;
    }

    .hoa-doc-actions {
        flex-direction: column;
    }
}
