﻿.ItemNeeded {
    color: #F00; 
    font-size: 10px;
}

.ItemNotNeeded {
    font-size: 10px;
}

.profilePhoto {
    width: 60px;
    height: 60px;
    vertical-align: baseline;
    cursor: pointer;
}

.eventPhoto {
    width: 100px;
    float:left;
    margin-right: 10px;
}

@media (min-width: 992px) {
    .toggle-nav.btn.pull-left { display: none; }
}

@media (max-width: 665px) {
    a.navbar-brand {
        display: none;
    }
}

@media (max-width: 767px) {
    .logButtons {
        display: none;
    }
}

.discussionItem a {
    color: #428bca;
}

.box-statistic .col-md-8 a {
    text-decoration: none;
}

.floatLeft {
    float: left;
}

.floatRight {
    float: right;
}

.chat ul>li.first, .chat ul>li.prev, .chat ul>li.page, .chat ul>li.next, .chat ul>li.last {
    border-bottom: 0;
}

.users {
    border:1px solid #808080; 
    margin: 2px; 
    text-align: center; 
    width: 95px; 
    height: 135px;
}

.borderTable, .borderTable tr, .borderTable td, .borderTable th {
    padding: 5px;
    border: 1px solid black;
}

.tabmenu .active {
    background-color: #DDD;
}

.messageRow:hover {
    background-color: #ececec !important;
}

#messageList .Odd {
    background-color: #F9F9F9;
}

.pull-left a:hover {
    text-decoration: none;
}

#recipientsList ul {
    width: 100% !important;
}

.roundCorners {
    border-radius: 10px !important;
    margin-bottom: 5px;
}


/***** Patches *****/

.container {
    padding-top: 0px;
    padding-left: 0px;
    padding-right: 0px;
}

header .navbar {
    padding: 0 10px;
}

.box .box-content .box-toolbox {
    padding: 5px 0;
}

#main-nav-bg {
    top: 82px;
}

#main-nav {
    top: 82px;
}
.box .box-content .box-toolbox.box-toolbox-top {
    margin-left: 0;
    margin-right: 0;
}

hr {
    margin-left: 0px;
    margin-right: 0px;
}

.album-list .picture img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}


/***** Detail alba *****/
.gallery .list-inline > li {
    padding: 0;
}

.gallery .list-unstyled.list-inline {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery .list-unstyled.list-inline > li {
    display: block;
}

.gallery .picture {
    position: relative;
    width: 100%; 
    padding-bottom: 100%; 
    overflow: hidden; 
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); 
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.gallery .picture:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.gallery .picture a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gallery .picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.gallery .picture a:hover img {
    transform: scale(1.08);
}


/***** Seznam alb *****/

/* Kontejner pro celý seznam alb */
.album-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin: 0 auto;
    padding: 8px;
}

/* Styly pro jednotlivou kartu alba */
.album-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album-card:hover img.album-thumbnail {
    transform: scale(1.08);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Obal pro obrázek - pro zajištění čtvercového oříznutí */
.album-image-wrapper {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
}

/* Samotný náhledový obrázek */
.album-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: transform 0.3s ease;
}

/* Obsah alba (texty, odkazy) */
.album-content {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.album-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 5px;
    color: #2c3e50;
}

/* Nový kontejner pro datum a odkaz na akci */
.album-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.album-dates {
    font-size: 0.8em;
    color: #667085;
    margin: 0;
}

.date-time {
    font-weight: 500;
}

/* Styl odkazu na akci */
.album-link {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 5px 8px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.75em;
    font-weight: 600;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.album-link:hover {
    background-color: #0056b3;
}

/* Meta informace (autor, počet fotek) */
.album-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #ebf0f5;
    font-size: 0.75em;
    color: #555;
}

.author-info {
    display: flex;
    align-items: center;
}

/* Avatar autora fotek */
.album-card .profilePhoto {
    width: 35px;
    height: 35px;
    object-fit: cover;
    margin-right: 6px;
    border: 1px solid #e0e0e0;
}

.author-name {
    font-weight: 600;
    color: #4a4a4a;
}

.photo-count {
    font-weight: 500;
    color: #777;
    text-align: right;
}

/* Pro menší obrazovky (mobilní zařízení) */
@media (max-width: 900px) {
    .album-list-container {
        gap: 10px;
        padding: 5px;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}
