html {
    height: 100%;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

header {
    background: #35424a;
    color: #ffffff;
    padding: 10px 20px;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav {
    background: #2c3537;
    margin: 0;
    padding: 0;
    text-align: center;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    display: inline-block;
    transition: background-color 0.3s;
}

nav a:hover {
    background: #FF922F;
}

main {
    padding: 20px;
    flex: 1;
}

footer {
    text-align: center;
    padding: 10px 0;
    background: #35424a;
    bottom: 0;
    width: 100%;
}
.logo {
    width:60px;
    height: 77px;
    position: absolute;
    top: 10px;
    left: 10px;
}

header {
    position: relative;
}

/* Header Auth Section */
.header-auth-section {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.auth-header-btn {
    background: #FF922F;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.auth-header-btn:hover {
    background: #E67E1F;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 2px solid #FF922F;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.modal-content h2 {
    text-align: center;
    color: #35424a;
    margin-top: 0;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: black;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.modal-content input:focus {
    outline: none;
    border-color: #FF922F;
    box-shadow: 0 0 5px rgba(255, 146, 47, 0.3);
}

.modal-content .submit-btn {
    width: 100%;
    padding: 12px;
    background: #FF922F;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.modal-content .submit-btn:hover {
    background: #E67E1F;
}

.user-info {
    background: #52BEF2;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.user-info p {
    margin: 0;
}

.logout-btn {
    background: #FF922F;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #E67E1F;
}

/* Post Creation */
.post-creation-section {
    background: #ffffff;
    border: 2px solid #52BEF2;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.post-creation-section h2 {
    color: #35424a;
    margin-top: 0;
}

#post-content {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 15px;
    resize: vertical;
}

#post-content:focus {
    outline: none;
    border-color: #52BEF2;
    box-shadow: 0 0 5px rgba(82, 190, 242, 0.3);
}

.submit-btn {
    background: #52BEF2;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #2E9FD0;
}

/* Posts Display */
#posts-container {
    max-width: 600px;
    margin: 20px auto;
}

#posts-container h2 {
    color: #35424a;
    border-bottom: 2px solid #FF922F;
    padding-bottom: 10px;
}

.post {
    background: #ffffff;
    border-left: 4px solid #FF922F;
    padding: 20px;
    margin: 15px 0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.post-author {
    margin: 0;
    color: #35424a;
    font-size: 16px;
}

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

.post-content {
    color: #333;
    line-height: 1.6;
    margin: 10px 0;
}

.delete-btn {
    background: #FF6B6B;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.delete-btn:hover {
    background: #E84444;
}