/* Home page styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --accent-blue: #007aff;
    --accent-blue-hover: #0051d5;
    --shadow-sm: 0 8px 24px rgba(120, 120, 128, 0.16);
    --shadow-md: 0 11px 34px rgba(120, 120, 128, 0.16);
    --shadow-lg: 0 11px 34px rgba(120, 120, 128, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

@font-face {
    font-family: 'cakefont';
    src: url('../font/cakedingbats-webfont.eot');
    src: url('../font/cakedingbats-webfont.eot?#iefix') format('embedded-opentype'),
    url('../font/cakedingbats-webfont.woff2') format('woff2'),
    url('../font/cakedingbats-webfont.woff') format('woff'),
    url('../font/cakedingbats-webfont.ttf') format('truetype'),
    url('../font/cakedingbats-webfont.svg#cake_dingbatsregular') format('svg');
    font-weight: normal;
    font-style: normal;
}
body {
    padding: 60px 0;
}
header {
    margin-bottom: 60px;
}
img {
    margin-bottom: 30px;
}
h1 {
    font-weight: bold;
}
ul {
    list-style-type: none;
    margin: 0 0 30px 0;
    padding-left: 25px;
}
a {
    color: #0071BC;
    text-decoration: underline;
}
hr {
    border-bottom: 1px solid #e7e7e7;
    border-top: 0;
    margin-bottom: 35px;
}

.text-center {
    text-align: center;
}
.links a {
    margin-right: 10px;
}
.release-name {
    color: #D33C43;
    font-weight: 400;
    font-style: italic;
}
.bullet:before {
    font-family: 'cakefont', sans-serif;
    font-size: 18px;
    display: inline-block;
    margin-left: -1.3em;
    width: 1.2em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    vertical-align: -1px;
}
.success:before {
    color: #88c671;
    content: "\0056";
}
.problem:before {
    color: #d33d44;
    content: "\0057";
}
.cake-error {
    padding: 10px;
    margin: 10px 0;
}
#url-rewriting-warning {
    display: none;
}

.dropzone {
  border: 2px dashed #aaa;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  color: #666;
  cursor: pointer;
  transition: background 0.3s;
}

.dropzone.dragover {
  background: #f0f8ff;
  border-color: #2196f3;
}

#result {
  margin-top: 20px;
  white-space: pre-wrap;
  background: #fafafa;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #eee;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Nadpisy */
h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 48px 0 24px;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 16px;
    color: var(--text-secondary);
}

/* Navigation */
.nav {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--accent-blue);
}

.nav-link.active {
    color: var(--accent-blue);
}

/* Tabs */
.tabs {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 4px;
    display: inline-flex;
    gap: 4px;
    box-shadow: var(--shadow-sm);
}

.tab {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.tab:hover {
    background: rgba(0, 0, 0, 0.04);
}

.tab.active {
    background: var(--accent-blue);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
    color: #fff;
}

/* Buttons */
.button {
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.button-primary {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.button-primary:hover {
    background: var(--accent-blue-hover);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
    transform: translateY(-1px);
}

.button-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.button-third {
  background: transparent;
  border: 2px dashed #ff3b30;
  backdrop-filter: blur(20px);
  color: #ff3b30;
}

.button-third:hover {
  background: #ff3b30;
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 0, 0, .4);
  transform: translateY(-1px);
}

.button-ghost {
    background: transparent;
    color: var(--accent-blue);
}

.button-ghost:hover {
    background: rgba(0, 122, 255, 0.08);
}

/* Inputs */
.input-group {
    margin-bottom: 20px;
}

.label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.input:not(.text):not(.email):not(.password) {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 15px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s;
    font-family: inherit;
}

.input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.input::placeholder {
    color: var(--text-secondary);
}

.textarea {
    min-height: 120px;
    resize: vertical;
}

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    padding-right: 40px;
}

/* Cards/Boxes */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.card-content {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Grid */
.grid {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Menu/Dropdown */
.menu {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
}

.menu-item {
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.menu-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.menu-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 8px 0;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 31px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e5e7;
    transition: 0.3s;
    border-radius: 31px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 27px;
    width: 27px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-color: #34c759;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-blue);
    cursor: pointer;
}

/* Demo sections */
.demo-section {
    margin-bottom: 48px;
}

.component-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 16px;
}

.inline-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}


/* Statistické karty */
.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0.8;
}

.stat-card-blue::before { background: linear-gradient(90deg, #007aff, #5ac8fa); }
.stat-card-green::before { background: linear-gradient(90deg, #34c759, #32d74b); }
.stat-card-purple::before { background: linear-gradient(90deg, #af52de, #bf5af2); }
.stat-card-orange::before { background: linear-gradient(90deg, #ff9500, #ff6b00); }

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 48px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-md);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-change {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-positive { color: #34c759; }
.stat-negative { color: #ff3b30; }
.stat-neutral { color: #ff9500; }

.stat-arrow {
    font-size: 16px;
    font-weight: bold;
}

/* Metrické karty */
.metric-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.metric-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.metric-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.metric-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.metric-badge-success {
    background: rgba(52, 199, 89, 0.15);
    color: #34c759;
}

.metric-badge-info {
    background: rgba(0, 122, 255, 0.15);
    color: #007aff;
}

.metric-badge-warning {
    background: rgba(255, 149, 0, 0.15);
    color: #ff9500;
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.metric-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.metric-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #007aff, #5ac8fa);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.metric-footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

.metric-mini-chart {
    display: flex;
    gap: 6px;
    height: 60px;
    align-items: flex-end;
    margin-bottom: 12px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, #007aff, #5ac8fa);
    border-radius: 3px 3px 0 0;
    transition: height 0.5s ease;
}

.metric-comparison {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
}

.comparison-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.comparison-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Analytická karta */
.analytics-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.analytics-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.analytics-stat-item {
    padding: 20px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.analytics-stat-item:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.analytics-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.analytics-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.analytics-stat-change {
    font-size: 14px;
    font-weight: 600;
}

.simple-chart {
    display: flex;
    gap: 8px;
    height: 120px;
    align-items: flex-end;
    padding: 20px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-md);
}

.chart-line {
    flex: 1;
    background: linear-gradient(to top, #007aff, #5ac8fa);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
    min-height: 20px;
}

.table-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.table-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    flex-wrap: wrap;
    gap: 16px;
}

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

.table thead {
    background: rgba(0, 0, 0, 0.02);
}

.table th {
    text-align: left;
    padding: 16px 24px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--glass-border);
}

.table tbody tr {
    transition: background 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

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

.table td {
    padding: 16px 24px;
    color: var(--text-primary);
}

.table-id {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 500;
}

.table-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.user-email {
    font-size: 12px;
    color: var(--text-secondary);
}

.status-badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-success {
    background: rgba(52, 199, 89, 0.15);
    color: #34c759;
}

.status-warning {
    background: rgba(255, 149, 0, 0.15);
    color: #ff9500;
}

.status-info {
    background: rgba(0, 122, 255, 0.15);
    color: #007aff;
}

.status-error {
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
}

.table-action {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-action:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
}

.table-footer {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
    gap: 16px;
}

.table-info {
    font-size: 13px;
    color: var(--text-secondary);
}

.svg-inside {
    display: inline-block;
    width: 30px;
    height: 100%;
}

.svg-inside svg {
    position: absolute;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 0;
}

.pagination li a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--glass-border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    display: block;
    text-decoration: none;
    text-align: center;
    line-height: 34px;
}

.pagination li a:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--accent-blue);
}

.pagination li.active a {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.pagination li a:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Kompaktní tabulka */
.table-compact .table th,
.table-compact .table td {
    padding: 12px 20px;
}

.stock-indicator {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.stock-high {
    background: rgba(52, 199, 89, 0.12);
    color: #34c759;
}

.stock-medium {
    background: rgba(255, 149, 0, 0.12);
    color: #ff9500;
}

.stock-low {
    background: rgba(255, 59, 48, 0.12);
    color: #ff3b30;
}

.link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.link:hover {
    opacity: 0.7;
}

.link-primary {
    color: var(--accent-blue);
    font-weight: 500;
}

.link-primary:hover {
    color: var(--accent-blue-hover);
    opacity: 1;
}

.link-underline {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.link-with-icon svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.link-with-icon:hover svg {
    transform: translateX(2px);
}

.link-document {
    color: var(--accent-blue);
    font-weight: 500;
}

.link-pdf {
    color: #ff3b30;
    font-weight: 500;
}

.link-pdf svg {
    width: 18px;
    height: 18px;
}

.link-download {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
}

.link-download:hover {
    background: rgba(0, 0, 0, 0.06);
    opacity: 1;
}

.link-download svg {
    color: var(--accent-blue);
}

.file-size {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    margin-left: 4px;
}

.link-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.link-button svg {
    width: 16px;
    height: 16px;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-25 {
    margin-bottom: 25px !important;
}

.invoice-tinder-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
}

.cards-wrapper {
    position: relative;
    height: 700px;
}

.invoice-card {
    position: absolute;
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
    padding: 30px;
}

.invoice-card.swiped-right {
    transform: translateX(150%) rotate(20deg);
    opacity: 0;
}

.invoice-card.swiped-left {
    transform: translateX(-150%) rotate(-20deg);
    opacity: 0;
}

.invoice-card {
    display: none;
}

.invoice-card.active {
    display: block;
    transform: scale(1);
    opacity: 1;
}

.invoice-card.next {
    display: block;
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.card-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.card-counter {
    background: #007bff;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.card-body {
    margin-bottom: 30px;
}

.invoice-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
}

.info-row .label {
    font-weight: 600;
    color: #666;
    margin-bottom: 0;
}

.info-row .value {
    color: #333;
    text-align: right;
}

.info-row .amount {
    font-size: 22px;
    font-weight: bold;
    color: #28a745;
}

.info-row .splatnost {
    font-weight: bold;
    color: #dc3545;
}

.card-actions {
    display: flex;
    gap: 15px;
}

.btn-paid, .btn-skip {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-paid {
    background: #28a745;
    color: white;
}

.btn-paid:hover {
    background: #218838;
    transform: scale(1.05);
}

.btn-skip {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #dee2e6;
}

.btn-skip:hover {
    background: #e9ecef;
}

.completion-message, .no-invoices {
    text-align: center;
    padding: 60px 20px;
}

.completion-message h2, .no-invoices h2 {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 20px;
}

.completion-message p, .no-invoices p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.btn-reload {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-reload:hover {
    background: #0056b3;
}

@media (max-width: 640px) {
    .invoice-tinder-container {
        padding: 10px;
        margin: 20px auto;
    }

    .invoice-card {
        padding: 20px;
    }

    .card-header h2 {
        font-size: 20px;
    }
}
.mb-10 {
    margin-bottom: 10px !important;
}

.qr {
    display: flex;
    justify-content: center;
}

/* Flash Messages */
.flash-message {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    animation: slideInDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.flash-message::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.flash-success::before {
    background: #34c759;
}

.flash-error::before {
    background: #ff3b30;
}

.flash-warning::before {
    background: #ff9500;
}

.flash-info::before {
    background: #007aff;
}

.flash-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.flash-success .flash-icon {
    background: rgba(52, 199, 89, 0.15);
    color: #34c759;
}

.flash-error .flash-icon {
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
}

.flash-warning .flash-icon {
    background: rgba(255, 149, 0, 0.15);
    color: #ff9500;
}

.flash-info .flash-icon {
    background: rgba(0, 122, 255, 0.15);
    color: #007aff;
}

.flash-content {
    flex: 1;
}

.flash-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.flash-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.flash-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.flash-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
}

/* Kompaktní flash zprávy */
.flash-compact {
    padding: 12px 16px;
}

.flash-compact .flash-icon {
    width: 24px;
    height: 24px;
}

.flash-compact .flash-content {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.flash-compact .flash-close {
    font-size: 20px;
    line-height: 1;
}

/* Flash container pro fixní pozici */
.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    pointer-events: none;
}

.flash-container .flash-message {
    pointer-events: all;
}

/* Login Page */
.login-container {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.login-color {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius-lg);
}

.login-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: var(--radius-lg);
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    display: inline-flex;
    margin-bottom: 24px;
}

.login-logo svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.login-form {
    margin-bottom: 24px;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.login-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.login-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--glass-border);
}

.login-divider span {
    position: relative;
    display: inline-block;
    padding: 0 16px;
    background: var(--glass-bg);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.login-social {
    display: flex;
    gap: 12px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}

.password-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
}

.d-flex {
  display: flex;
  align-items: center;
  gap: 30px;
}
