
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    margin: 0;
    padding: 0;
}
header {
    background-color: #2c3e50;
    color: white;
    padding: 0.75rem;
    text-align: center;
}
main {
    padding: 2rem;
}
form {
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    max-width: 400px;
    margin-bottom: 1rem;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}
table th, table td {
    border: 1px solid #ccc;
    padding: 0.5rem;
}
table th {
    background-color: #ecf0f1;
}
a {
    color: #2980b9;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
button, input[type='submit'] {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}


.back-button {
    display: inline-block;
    margin: 0.5rem 1rem 1rem 0;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}
.back-button:hover {
    text-decoration: underline;
}


.login-container {
    max-width: 400px;
    margin: 8% auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.login-container h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}
.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.login-container input[type="submit"] {
    width: 100%;
    padding: 0.6rem;
}




.card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
    width: 250px;
    text-align: center;
 position: relative;}
.card h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}
.card p {
    font-size: 1.2rem;
    color: #34495e;
    font-weight: bold;
}

.dashboard-actions {
    text-align: center;
    margin-top: 2rem;
}
.action-link {
    display: inline-block;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    margin: 0 0.5rem;
}
.action-link:hover {
    background-color: #2980b9;
}


.centered {
    max-width: 1000px;
    margin: 0 auto;
}

.edit-form {
    background: white;
    padding: 1.5rem;
    margin: 2rem auto;
    border-radius: 8px;
    max-width: 600px;
    box-shadow: 0 0 12px rgba(0,0,0,0.05);
}
.edit-form input[type="text"],
.edit-form input[type="number"] {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.edit-form input[type="submit"] {
    width: 100%;
    padding: 0.7rem;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}
.edit-form input[type="submit"]:hover {
    background-color: #1e8449;
}

.login-container {
    max-width: 400px;
    margin: 8% auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.login-container h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}
.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.login-container input[type="submit"] {
    width: 100%;
    padding: 0.6rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
}
.login-container input[type="submit"]:hover {
    background-color: #2980b9;
}

.centered {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.success-box {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border-left: 6px solid #2e7d32;
    border-radius: 5px;
    font-weight: bold;
}

.success-box {
    background-color: #f1f8e9;
    color: #33691e;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border-left: 5px solid #558b2f;
    border-radius: 5px;
    font-weight: bold;
}

/* Vystředěný a větší formulář */
.centered {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.centered input[type="text"],
.centered input[type="number"],
.centered input[type="date"],
.centered input[type="file"],
.centered input[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.centered input[type="submit"] {
    background-color: #3498db;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
}
.centered input[type="submit"]:hover {
    background-color: #2980b9;
}


.card {
    flex: 1 1 250px;
    padding: 0.75rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(0,0,0,0.05);
    text-align: center;
 position: relative;}

.card {
    flex: 1 1 250px;
    padding: 1.5rem;
    margin: 0.5rem;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    text-align: center;
 position: relative;}
.card h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}
.card p {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
}




/* Link for small actions within cards */
.small-link {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #2980b9;
    text-decoration: none;
}
.small-link:hover {
    text-decoration: underline;
}

/* Error message box */
.error-box {
    background-color: #fdecea;
    color: #c0392b;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-left: 5px solid #e74c3c;
    border-radius: 5px;
}


/* Styling for total expenses box */
.total-box {
    margin: 1.5rem auto;
    max-width: 800px;
    padding: 0.75rem;
    border: 2px solid #3498db;
    border-radius: 8px;
    background-color: #ecf5fd;
    text-align: center;
}
.total-box h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: #2c3e50;
}
.total-box p {
    margin: 0;
    font-size: 1.25rem;
    font-weight: bold;
    color: #2c3e50;
}




/* Dashboard container for cards side by side */


/* Card styling with blue border like total-box */
.card {
    border: 2px solid #3498db;
    background-color: #ecf5fd;
    border-radius: 8px;
    padding: 0.75rem;
    flex: 1 1 250px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
 position: relative;}

/* Card header and emoji styling */
.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}





/* Vertical stack for dashboard cards with uniform size */

.card {
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
 position: relative;}

/* Override to stack cards vertically with uniform size */

.card {
    width: 100% !important;
    max-width: 400px !important;
    box-sizing: border-box !important;
 position: relative;}





/* Reduce paragraph margin inside cards */
.card p {
    margin-bottom: 0.25rem;
}

/* Reduce spacing between stacked cards */


/* Reduce bottom margin of each card for tighter layout */
.card {
    margin-bottom: 0.5rem !important;
    padding: 0.75rem !important;
 position: relative;}

/* Reduce header and paragraph margins */
.card h3 {
    margin-bottom: 0.25rem !important;
}
.card p {
    margin-bottom: 0.25rem !important;
}



/* Override to remove bottom spacing under numbers and cards */
.card p {
  margin-bottom: 0 !important;
}
.card {
  padding-bottom: 0.5rem !important;
 position: relative;}


/* Horizontal layout for dashboard cards */


/* Smaller uniform cards */
.card {
    flex: 0 1 200px !important;
    max-width: 200px !important;
    padding: 0.75rem !important;
    border: 2px solid #3498db !important;
    background-color: #ecf5fd !important;
    border-radius: 8px !important;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
 position: relative;}
.card h3 {
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
}
.card p {
    font-size: 1.125rem !important;
    margin-bottom: 0 !important;
}






/* Vertical stack for dashboard cards */
.dashboard {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    margin: 2rem auto !important;
}

/* Widen dashboard cards for vertical stack */
.dashboard .card {
    width: 100% !important;
    max-width: 600px !important;
    min-width: 300px !important;
 position: relative;}


/* Action link styling */
.action-link {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.5rem 1rem;
    background: #3498db;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}
.action-link:hover {
    background: #2980b9;
}

/* Double the font size for amounts in overview cards */
.card p {
    font-size: 2em !important;
}


/* Header banner styling */
.header-banner {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.header-banner h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

/* Predicted sale price form styling */
.predikce-form {
    max-width: 400px;
    margin: 1rem auto;
    padding: 1rem;
    border: 2px solid #2ecc71;
    border-radius: 8px;
    text-align: center;
    background: #e8f8f5;
}
.predikce-form input[type="number"] {
    width: 100%;
    padding: 0.5rem;
    margin: 0.5rem 0;
}
.predikce-form input[type="submit"] {
    padding: 0.5rem 1rem;
    background: #2ecc71;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Display for predicted sale price on users page */
.predikce-display {
    margin: 1rem auto;
    padding: 0.5rem 1rem;
    border: 2px solid #2ecc71;
    border-radius: 5px;
    background: #e8f8f5;
    max-width: 600px;
    text-align: center;
}

/* Investor message box styling */
.investor-message {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    border: 2px dashed #f39c12;
    border-radius: 8px;
    background-color: #fdf6e3;
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
}
