/* Jeff's Architecture - Skin Pages
   File: skins/default/css/pages.css
*/

/* --- 1. AUTHENTICATION (Login, Signup, Forgot) --- */
/* Wrapper to center content vertically */
.page-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem 1rem;
}

.login-form-wrapper, .register-form-wrapper {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-float);
    text-align: left;
}

.register-form-wrapper {
    max-width: 600px; /* Wider for signup steps */
}

.auth-nav {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-message-register {
    background-color: var(--bg-surface-2);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

/* Auth Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.form-actions-single {
    margin-top: 1.5rem;
}

/* --- 2. MESSENGER & TICKETS (Bubble Chat) --- */
/* The layout container is handled in layout.css, this handles the internals */

/* Chat Window Header */
.chat-header, .ticket-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Message Area */
.chat-messages {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background-color: var(--bg-body);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Bubbles */
.message-bubble {
    max-width: 75%;
    padding: 1rem 1.2rem;
    position: relative;
    word-wrap: break-word;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: var(--shadow-xs);
}

/* ME (Right Side) */
.msg-me {
    align-self: flex-end;
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 var(--radius-lg);
}

.msg-me .msg-meta {
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

/* OTHERS (Left Side) */
.msg-other, .msg-support {
    align-self: flex-start;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0;
}

.msg-other .msg-meta {
    color: var(--text-muted);
}

.msg-meta {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    display: block;
    font-weight: 600;
}

/* Conversation List (Left Sidebar in Messenger) */
.conversation-list {
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
}

.convo-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
    cursor: pointer;
}

.convo-item:hover {
    background-color: var(--bg-surface-2);
}

.convo-item.active {
    background-color: var(--primary-light);
    border-left: 3px solid var(--primary);
}

.convo-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    background-color: var(--bg-surface-2);
}

.convo-info {
    flex: 1;
    overflow: hidden;
}

.convo-name {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
}

.convo-snippet {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Compose Area */
.chat-compose, .reply-area {
    padding: 1.5rem;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}

/* --- 3. DEVELOPER DOCS --- */
/* Used in developer.php */
.docs-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.docs-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 90px; /* Offset for header */
}

.docs-content {
    flex-grow: 1;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.docs-nav-group {
    margin-bottom: 2rem;
}

.docs-nav-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.docs-nav-link {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-main);
    font-size: 0.95rem;
    border-left: 2px solid transparent;
    padding-left: 1rem;
}

.docs-nav-link:hover, .docs-nav-link.active {
    color: var(--primary);
    border-left-color: var(--primary);
}

.docs-code-block {
    background-color: #0d1117;
    color: #c9d1d9;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    font-family: monospace;
    margin: 1rem 0 2rem 0;
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.docs-code-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px solid #30363d;
    padding-bottom: 0.5rem;
    color: #8b949e;
    font-size: 0.85rem;
}

.lang-badge {
    color: var(--primary);
    font-weight: bold;
}