/*
 * PrototypeBeta — Styl 2008 Web 2.0
 * Inspirowany Facebookiem i innymi portalami społecznościowymi tamtej epoki.
 * Cechy charakterystyczne:
 *   - Czerwony górny pasek nawigacyjny
 *   - Prosta kolumnowa struktura
 *   - Zaokrąglone ramki i subtelne gradienty (Web 2.0)
 *   - Czcionki: Trebuchet MS, Verdana (popularne w 2008)
 *   - Brak responsywności (tak jak wtedy)
 */

/* ═══════════════════════════════════════════
   RESET I PODSTAWY
   ═══════════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Trebuchet MS', Verdana, Arial, sans-serif;
    font-size: 12px;
    color: #333333;
    background-color: #e8e8e8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23e8e8e8'/%3E%3Crect width='2' height='2' fill='%23e2e2e2'/%3E%3C/svg%3E");
    min-width: 980px;
}

a {
    color: #3b5998;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
    color: #2d4373;
}

/* ═══════════════════════════════════════════
   GÓRNY PASEK NAWIGACYJNY (czerwony)
   ═══════════════════════════════════════════ */
#topbar {
    background: linear-gradient(to bottom, #cc0000 0%, #990000 100%);
    border-bottom: 2px solid #770000;
    height: 42px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#topbar-inner {
    width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 42px;
}

/* Logo PrototypeBeta */
#logo a {
    text-decoration: none;
    display: flex;
    align-items: baseline;
}

.logo-face {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 26px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: -1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.logo-pl {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 26px;
    font-weight: bold;
    color: #ffcccc;
    letter-spacing: -1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

/* Wyszukiwarka w pasku */
#topbar-search {
    margin-left: 20px;
    flex: 1;
}

#topbar-search form {
    display: flex;
    gap: 4px;
}

.search-input {
    padding: 4px 8px;
    border: 1px solid #aa0000;
    border-radius: 3px;
    font-size: 12px;
    width: 220px;
    background: rgba(255,255,255,0.9);
    color: #333;
    outline: none;
}
.search-input:focus {
    background: #fff;
    border-color: #ffaaaa;
    box-shadow: 0 0 3px rgba(255,200,200,0.5);
}

.search-btn {
    padding: 4px 10px;
    background: linear-gradient(to bottom, #ff4444, #cc0000);
    border: 1px solid #880000;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}
.search-btn:hover {
    background: linear-gradient(to bottom, #ff6666, #ee0000);
}

/* Linki w pasku */
#topbar-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.topnav-link {
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 3px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.topnav-link:hover {
    background: rgba(0,0,0,0.2);
    text-decoration: none;
    color: #fff;
}

.topnav-avatar {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.4);
    object-fit: cover;
    vertical-align: middle;
}

.topnav-logout {
    color: #ffcccc;
    border-left: 1px solid rgba(255,255,255,0.2);
    margin-left: 4px;
}

/* Odznaka powiadomień */
.badge {
    background: #ffff00;
    color: #990000;
    font-size: 10px;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 10px;
    border: 1px solid #cc9900;
}

/* ═══════════════════════════════════════════
   KOMUNIKATY FLASH
   ═══════════════════════════════════════════ */
#flash-messages {
    width: 980px;
    margin: 8px auto 0;
}

.flash {
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.flash-success {
    background: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}
.flash-error {
    background: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
}
.flash-info {
    background: #d1ecf1;
    border: 1px solid #17a2b8;
    color: #0c5460;
}

/* ═══════════════════════════════════════════
   GŁÓWNY OBSZAR TREŚCI
   ═══════════════════════════════════════════ */
#content {
    width: 980px;
    margin: 10px auto;
}

/* ═══════════════════════════════════════════
   UKŁADY KOLUMNOWE
   ═══════════════════════════════════════════ */

/* Trzy kolumny: lewa (mini-profil) | środkowa (treść) | prawa (sugestie) */
.three-col-layout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.col-left  { width: 175px; flex-shrink: 0; }
.col-center{ flex: 1; min-width: 0; }
.col-right { width: 200px; flex-shrink: 0; }

/* Dwie kolumny */
.two-col-layout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.col-side-left { width: 180px; flex-shrink: 0; }
.col-main { flex: 1; }
.col-main-wide { flex: 1; }
.col-side { width: 220px; flex-shrink: 0; }

/* Centrowany układ */
.center-layout { max-width: 760px; margin: 0 auto; }

/* ═══════════════════════════════════════════
   BLOKI BOCZNE (SIDEBAR)
   ═══════════════════════════════════════════ */
.sidebar-box {
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.sidebar-title {
    font-size: 12px;
    font-weight: bold;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-title-link {
    font-size: 11px;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
    color: #3b5998;
}

.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    border-bottom: 1px solid #f0f0f0;
}
.sidebar-nav li:last-child { border-bottom: none; }

.sidebar-nav li a {
    display: block;
    padding: 6px 4px;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    border-radius: 2px;
}
.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    background: #f0f0f0;
    color: #cc0000;
    text-decoration: none;
}

.sidebar-hint {
    color: #999;
    font-size: 11px;
    font-style: italic;
    margin: 4px 0;
}

/* Mini-profil w sidebarze */
.sidebar-profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
}
.sidebar-profile-link:hover { text-decoration: none; color: #cc0000; }

.sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #ccc;
    object-fit: cover;
}

.sidebar-name {
    font-weight: bold;
    font-size: 12px;
}

/* ═══════════════════════════════════════════
   POLA TREŚCI (CONTENT BOX)
   ═══════════════════════════════════════════ */
.content-box {
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.box-title {
    background: linear-gradient(to bottom, #f5f5f5, #e8e8e8);
    border-bottom: 1px solid #ccc;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-link {
    font-weight: normal;
    font-size: 11px;
    color: #666;
}

/* ═══════════════════════════════════════════
   POSTY NA TABLICY
   ═══════════════════════════════════════════ */
.post-form-box {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.post-form-header {
    background: linear-gradient(to bottom, #f5f5f5, #ebebeb);
    border-bottom: 1px solid #ddd;
    padding: 7px 12px;
    font-weight: bold;
    font-size: 12px;
    color: #555;
}

.post-textarea {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid #eee;
    font-family: 'Trebuchet MS', Verdana, Arial, sans-serif;
    font-size: 12px;
    resize: vertical;
    outline: none;
    color: #333;
}
.post-textarea:focus { background: #fffef8; }

.post-form-footer {
    padding: 6px 12px;
    text-align: right;
    background: #f9f9f9;
}

/* Karta posta */
.post-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.post-header {
    display: flex;
    align-items: flex-start;
    padding: 10px 12px 6px;
    gap: 8px;
}

.post-avatar {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    border: 1px solid #ddd;
    object-fit: cover;
    flex-shrink: 0;
}

.post-meta {
    flex: 1;
}

.post-author {
    font-weight: bold;
    font-size: 12px;
    display: block;
}
.post-author a { color: #3b5998; }
.post-author a:hover { color: #cc0000; text-decoration: underline; }

.post-time {
    color: #999;
    font-size: 11px;
}

.post-content {
    padding: 4px 12px 10px 56px;
    font-size: 12px;
    line-height: 1.5;
    color: #222;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Komentarze */
.comments-section {
    border-top: 1px solid #f0f0f0;
    background: #f9f9f9;
    padding: 6px 12px;
}

.comment {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 4px 0;
    border-bottom: 1px dotted #eee;
}
.comment:last-child { border-bottom: none; }

.comment-avatar {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    border: 1px solid #ddd;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    font-size: 11px;
}

.comment-author a {
    font-weight: bold;
    color: #3b5998;
}

.comment-text {
    margin-left: 4px;
    color: #333;
}

.comment-time {
    display: block;
    color: #bbb;
    font-size: 10px;
    margin-top: 2px;
}

/* Formularz komentarza */
.comment-form {
    border-top: 1px solid #eee;
    padding: 6px 12px;
    background: #fafafa;
}

.inline-comment-form {
    display: flex;
    gap: 6px;
}

.comment-input {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 11px;
    font-family: 'Trebuchet MS', Verdana, Arial, sans-serif;
    outline: none;
    background: #fff;
}
.comment-input:focus {
    border-color: #aaa;
    background: #fff;
}

.btn-comment {
    padding: 4px 10px;
    background: linear-gradient(to bottom, #f5f5f5, #ddd);
    border: 1px solid #bbb;
    border-radius: 10px;
    font-size: 11px;
    cursor: pointer;
    color: #444;
}
.btn-comment:hover { background: linear-gradient(to bottom, #eee, #ccc); }

/* Pusty feed */
.empty-feed {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    color: #888;
    font-size: 13px;
}
.empty-feed p { margin-bottom: 8px; }

/* ═══════════════════════════════════════════
   PROFIL UŻYTKOWNIKA
   ═══════════════════════════════════════════ */
.profile-header-box {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Dekoracyjny pasek u góry profilu */
.profile-header-box::before {
    content: '';
    display: block;
    height: 6px;
    background: linear-gradient(to right, #cc0000, #990000);
}

.profile-header-inner {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 16px;
}

.profile-avatar-area {
    flex-shrink: 0;
    position: relative;
    text-align: center;
}

.profile-big-avatar {
    width: 100px;
    height: 100px;
    border-radius: 4px;
    border: 2px solid #ddd;
    object-fit: cover;
    display: block;
}

.avatar-upload-btn {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    color: #3b5998;
    cursor: pointer;
    text-align: center;
}
.avatar-upload-btn:hover { color: #cc0000; text-decoration: underline; }

.profile-info-area { flex: 1; }

.profile-name {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.profile-bio {
    color: #666;
    font-style: italic;
    margin-bottom: 8px;
    font-size: 12px;
}

.profile-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.profile-details span {
    color: #555;
    font-size: 12px;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

/* Dwukolumnowy układ profilu */
.profile-body {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.profile-col-left  { width: 220px; flex-shrink: 0; }
.profile-col-right { flex: 1; min-width: 0; }

/* Tabela informacji */
.info-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}
.info-table tr { border-bottom: 1px solid #f5f5f5; }
.info-table td { padding: 4px 2px; }
.info-label {
    color: #888;
    font-weight: bold;
    width: 80px;
    white-space: nowrap;
}

/* Siatka znajomych w sidebarze */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 6px;
}

.friend-tile {
    text-align: center;
}

.friend-tile a { text-decoration: none; }
.friend-tile a:hover .friend-tile-avatar { border-color: #cc0000; }

.friend-tile-avatar {
    width: 54px;
    height: 54px;
    border-radius: 4px;
    border: 1px solid #ddd;
    object-fit: cover;
    display: block;
}

.friend-tile-name {
    font-size: 10px;
    color: #444;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════
   SUGESTIE ZNAJOMYCH (prawa kolumna)
   ═══════════════════════════════════════════ */
.suggestion-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dotted #eee;
}
.suggestion-item:last-child { border-bottom: none; }

.suggestion-avatar {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    border: 1px solid #ddd;
    object-fit: cover;
    flex-shrink: 0;
}

.suggestion-name {
    font-weight: bold;
    font-size: 12px;
    display: block;
    color: #3b5998;
}

.suggestion-city {
    font-size: 11px;
    color: #888;
    margin: 2px 0;
}

.btn-add-friend-sm {
    font-size: 10px;
    color: #cc0000;
    display: block;
    margin-top: 3px;
}

/* ═══════════════════════════════════════════
   ZNAJOMI — STRONA
   ═══════════════════════════════════════════ */
.friend-request-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
}
.friend-request-item:last-child { border-bottom: none; }

.friend-req-avatar {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    border: 1px solid #ddd;
    object-fit: cover;
    flex-shrink: 0;
}

.friend-req-info { flex: 1; }

.friend-req-name {
    font-weight: bold;
    font-size: 13px;
    display: block;
    color: #3b5998;
}

.friend-req-city, .friend-req-date {
    color: #888;
    font-size: 11px;
    margin-top: 2px;
}

.friend-req-actions {
    display: flex;
    gap: 6px;
}

.status-pending {
    color: #888;
    font-style: italic;
    font-size: 12px;
}

.status-friend {
    color: #28a745;
    font-weight: bold;
    font-size: 12px;
}

/* Siatka listy znajomych */
.friends-list-grid { padding: 4px 8px; }

.friends-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #f5f5f5;
}
.friends-list-item:last-child { border-bottom: none; }

.friends-list-avatar {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #ddd;
    object-fit: cover;
}

.friends-list-info { flex: 1; }

.friends-list-name {
    font-weight: bold;
    font-size: 12px;
    color: #3b5998;
    display: block;
}

.friends-list-city {
    font-size: 11px;
    color: #888;
}

/* ═══════════════════════════════════════════
   WIADOMOŚCI
   ═══════════════════════════════════════════ */
.compose-btn {
    margin-top: 8px;
    display: block;
    text-align: center;
}

.messages-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.messages-table thead tr {
    background: linear-gradient(to bottom, #f5f5f5, #e8e8e8);
}

.messages-table th {
    padding: 7px 12px;
    text-align: left;
    border-bottom: 1px solid #ccc;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.messages-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.messages-table tr:last-child td { border-bottom: none; }

.messages-table tr:hover td {
    background: #f5f0f0;
}

.unread-row td { background: #fff8f8; }

.msg-avatar {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    border: 1px solid #ddd;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 6px;
}

.msg-subject { color: #333; }
.msg-subject.unread { font-weight: bold; color: #222; }

.msg-date { color: #888; font-size: 11px; white-space: nowrap; }

/* Widok wiadomości */
.message-view { padding: 16px; }

.message-header-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.message-header-table tr { border-bottom: 1px solid #f0f0f0; }
.message-header-table tr:last-child { border-bottom: none; }
.message-header-table td { padding: 7px 12px; }

.mh-label {
    background: #f5f5f5;
    font-weight: bold;
    color: #666;
    width: 70px;
}

.message-body {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    color: #333;
    margin-bottom: 16px;
}

.message-actions { display: flex; gap: 8px; }

/* Formularz komponowania */
.compose-form { padding: 16px; }

/* ═══════════════════════════════════════════
   POWIADOMIENIA
   ═══════════════════════════════════════════ */
.notif-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notif-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #f9f9f9; }

.notif-unread { background: #fff5f5; }

.notif-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.notif-content {
    flex: 1;
    font-size: 12px;
    line-height: 1.5;
}

.notif-time {
    color: #aaa;
    font-size: 11px;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════
   WYSZUKIWANIE
   ═══════════════════════════════════════════ */
.search-form-inline {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.search-big {
    flex: 1;
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 3px;
    outline: none;
}
.search-big:focus { border-color: #cc0000; }

.search-results { padding: 0 8px; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    border-bottom: 1px solid #f0f0f0;
}
.search-result-item:last-child { border-bottom: none; }

.search-avatar {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    border: 1px solid #ddd;
    object-fit: cover;
    flex-shrink: 0;
}

.search-info { flex: 1; }

.search-name {
    font-weight: bold;
    font-size: 13px;
    color: #3b5998;
    display: block;
}
.search-city, .search-school {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* ═══════════════════════════════════════════
   STRONA POWITALNA (INDEX)
   ═══════════════════════════════════════════ */
#welcome-page {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 20px 0;
}

#welcome-left {
    flex: 1;
    padding: 10px;
}

.welcome-logo-big {
    margin-bottom: 12px;
}

.welcome-logo-big .logo-face {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 52px;
    font-weight: bold;
    color: #cc0000;
    letter-spacing: -1px;
}

.welcome-logo-big .logo-pl {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 52px;
    font-weight: bold;
    color: #990000;
    letter-spacing: -1px;
}

.welcome-tagline {
    font-size: 22px;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.4;
}

.welcome-features { margin-top: 20px; }

.feature-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.feature-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 32px;
}

.feature-text {
    font-size: 13px;
    line-height: 1.5;
    color: #444;
}

#welcome-right { width: 380px; flex-shrink: 0; }

.welcome-register-box {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 12px;
}

.welcome-register-box h2 {
    font-size: 15px;
    color: #333;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.form-row-2 {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.form-input {
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    font-family: 'Trebuchet MS', Verdana, Arial, sans-serif;
    outline: none;
    flex: 1;
    margin-bottom: 6px;
}
.form-input:focus { border-color: #cc0000; box-shadow: 0 0 3px rgba(204,0,0,0.2); }
.form-input.full { width: 100%; display: block; }

.welcome-login-box {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px 16px;
}

.welcome-login-box p {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.inline-login-form {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.form-input-sm {
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
    font-family: 'Trebuchet MS', Verdana, Arial, sans-serif;
    flex: 1;
    min-width: 120px;
    outline: none;
}
.form-input-sm:focus { border-color: #cc0000; }

/* ═══════════════════════════════════════════
   FORMULARZE AUTORYZACJI
   ═══════════════════════════════════════════ */
.auth-page {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.auth-box {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 24px 30px;
    width: 380px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auth-box.wide { width: 520px; }

.auth-title {
    font-size: 20px;
    color: #cc0000;
    margin-bottom: 4px;
}

.auth-subtitle {
    color: #888;
    font-size: 12px;
    margin-bottom: 16px;
}

.auth-form { margin-top: 16px; }

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #555;
    margin-bottom: 4px;
}

.form-control {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    font-family: 'Trebuchet MS', Verdana, Arial, sans-serif;
    outline: none;
    box-sizing: border-box;
}
.form-control:focus { border-color: #cc0000; box-shadow: 0 0 3px rgba(204,0,0,0.15); }

textarea.form-control { resize: vertical; }

.hint {
    color: #999;
    font-weight: normal;
    font-size: 11px;
}

.terms-text {
    color: #888;
    font-size: 11px;
}

.auth-footer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.center-group { text-align: center; }

.edit-avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    border: 2px solid #ddd;
    object-fit: cover;
    margin-bottom: 8px;
    display: block;
    margin: 0 auto 10px;
}

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

/* ═══════════════════════════════════════════
   PRZYCISKI
   ═══════════════════════════════════════════ */
.btn-primary {
    padding: 6px 14px;
    background: linear-gradient(to bottom, #cc0000, #990000);
    border: 1px solid #770000;
    border-radius: 3px;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    font-family: 'Trebuchet MS', Verdana, Arial, sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.btn-primary:hover {
    background: linear-gradient(to bottom, #ee0000, #bb0000);
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    padding: 6px 14px;
    background: linear-gradient(to bottom, #f8f8f8, #e0e0e0);
    border: 1px solid #bbb;
    border-radius: 3px;
    color: #444;
    font-size: 12px;
    font-family: 'Trebuchet MS', Verdana, Arial, sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.btn-secondary:hover {
    background: linear-gradient(to bottom, #eee, #ccc);
    color: #222;
    text-decoration: none;
}

.btn-secondary.disabled {
    opacity: 0.7;
    cursor: default;
    pointer-events: none;
}

.btn-sm {
    padding: 3px 8px;
    background: linear-gradient(to bottom, #f8f8f8, #e0e0e0);
    border: 1px solid #bbb;
    border-radius: 3px;
    color: #444;
    font-size: 11px;
    font-family: 'Trebuchet MS', Verdana, Arial, sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.btn-register-big {
    width: 100%;
    padding: 9px;
    background: linear-gradient(to bottom, #5cb85c, #3d8b3d);
    border: 1px solid #2d6a2d;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Trebuchet MS', Verdana, Arial, sans-serif;
    cursor: pointer;
    margin-top: 6px;
}
.btn-register-big:hover { background: linear-gradient(to bottom, #6bc46b, #4da04d); }

.btn-login-sm {
    padding: 5px 12px;
    background: linear-gradient(to bottom, #cc0000, #990000);
    border: 1px solid #770000;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    font-family: 'Trebuchet MS', Verdana, Arial, sans-serif;
    cursor: pointer;
    white-space: nowrap;
}
.btn-login-sm:hover { background: linear-gradient(to bottom, #ee0000, #bb0000); }

.full-width { width: 100%; display: block; }

/* ═══════════════════════════════════════════
   ODZNAKI I INLINE BADGE
   ═══════════════════════════════════════════ */
.badge-inline {
    background: #cc0000;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 1px 6px;
    border-radius: 10px;
}

/* ═══════════════════════════════════════════
   MODAL (zmiana zdjęcia)
   ═══════════════════════════════════════════ */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 20px 24px;
    width: 360px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.modal-box h3 {
    margin-bottom: 14px;
    font-size: 15px;
    color: #333;
}

.modal-box .btn-primary,
.modal-box .btn-secondary {
    margin-right: 8px;
    margin-top: 10px;
}

/* ═══════════════════════════════════════════
   KOMUNIKATY PUSTEJ LISTY
   ═══════════════════════════════════════════ */
.empty-msg {
    padding: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
    font-size: 12px;
}

/* ═══════════════════════════════════════════
   STOPKA
   ═══════════════════════════════════════════ */
#footer {
    background: #e0e0e0;
    border-top: 1px solid #ccc;
    padding: 14px 0;
    margin-top: 20px;
}

#footer-inner {
    width: 980px;
    margin: 0 auto;
    text-align: center;
    color: #888;
    font-size: 11px;
}

#footer-inner a {
    color: #777;
}
#footer-inner a:hover { color: #cc0000; }
